|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.naftulin.configmgr.parsers.ExternalConfigurationParserImpl
public class ExternalConfigurationParserImpl
Invokes external record adapter
with parameters specified in configuration record.
Used to connect external configurations to be managed by configuration managment engine.
Constructor Summary | |
---|---|
ExternalConfigurationParserImpl()
|
Method Summary | |
---|---|
ConfigurationManagementEntry |
getConfigurationManagementEntry(java.lang.String key,
java.net.URL fileUrl)
Invokes external record adapter with parameters specified in configuration record. |
java.util.List<NameValuePairImpl> |
getNameValuePairs()
Returns the named value list parsed from the master configuration. |
void |
setExternalRecordAdapterClass(java.lang.String externalRecordAdapterClass)
Sets the full class name for the ExternalRecordAdapter class. |
void |
setNameValuePairs(java.util.List<NameValuePairImpl> nameValuePairs)
Sets the named value list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalConfigurationParserImpl()
Method Detail |
---|
public void setExternalRecordAdapterClass(java.lang.String externalRecordAdapterClass)
ExternalRecordAdapter
class.
externalRecordAdapterClass
- the full class name for the ExternalRecordAdapter
class.public ConfigurationManagementEntry getConfigurationManagementEntry(java.lang.String key, java.net.URL fileUrl) throws ConfigurationManagerException
external record adapter
with parameters specified in configuration record.
If the adaptor is not created yet, create it and call load method, otherwise, calls reload.
getConfigurationManagementEntry
in interface ConfigEntryParser
key
- the key for the external configuration.fileUrl
- ignored.
ConfigurationManagementEntry
- if external configuration cannot be instatiated or has problems
loading or reloading.
ConfigurationManagerException
- if an error occurs while parsing an entry.public java.util.List<NameValuePairImpl> getNameValuePairs()
public void setNameValuePairs(java.util.List<NameValuePairImpl> nameValuePairs)
nameValuePairs
- the named value pair list.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |