org.naftulin.configmgr.parsers
Interface ExternalRecordAdapter

All Superinterfaces:
java.io.Serializable

public interface ExternalRecordAdapter
extends java.io.Serializable

Interface that enables to brige an external configuration to be used with configuration managment engine. To create an external record you need to creating a custom bridge class between the externaly managed configuration and configuration manager.

Since:
1.0
Author:
Henry Naftulin

Method Summary
 java.lang.String getInfo(java.util.List<NameValuePairImpl> args)
          Returns information about the external configuration, such as file from which the configuration is read.
 java.lang.Object load(java.util.List<NameValuePairImpl> args)
          Returns an object to be stored in configuration manager entry.
 java.lang.Object reload(java.util.List<NameValuePairImpl> args)
          Returns an object to be stored in configuration manager entry.
 

Method Detail

load

java.lang.Object load(java.util.List<NameValuePairImpl> args)
                      throws ConfigurationManagerException
Returns an object to be stored in configuration manager entry. Is called to load the configuration for the first time.

Parameters:
args - list of name value pairs NameValuePairImpl read from master configuration file
Returns:
an object to be stored in configuration manager entry
Throws:
ConfigurationManagerException

reload

java.lang.Object reload(java.util.List<NameValuePairImpl> args)
                        throws ConfigurationManagerException
Returns an object to be stored in configuration manager entry. Is called to re-load the configuration after the configuration has been loaded.

Parameters:
args - list of name value pairs NameValuePairImpl read from master configuration file
Returns:
an object to be stored in configuration manager entry
Throws:
ConfigurationManagerException

getInfo

java.lang.String getInfo(java.util.List<NameValuePairImpl> args)
Returns information about the external configuration, such as file from which the configuration is read.

Parameters:
args - list of name value pairs NameValuePairImpl read from master configuration file
Returns:
information about the external configuration


Copyright © 2009. All Rights Reserved.