|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.naftulin.configmgr.ConfigurationManagementImpl
public class ConfigurationManagementImpl
Configuration Management provides a convinient way to manage configuration for your programs. Alows to load and reload configurations, add configuration, list all the configurations and returns configuration manager interface. Configuration manager interface returns configuration based on the key.
Method Summary | |
---|---|
void |
addConfigurationManagmentEntry(ConfigurationManagementEntry entry)
Adds a configuration entry to the configuration manager. |
ConfigurationManager |
getConfigurationManager()
Returns configuration manager created by the configuration management engine. |
java.util.List<ConfigurationManagementEntry> |
getConfigurationManagmentEntries()
Returns a list of configuration management entries managed by this configuration managment engine. |
ConfigurationManagementEntry |
getConfigurationManagmentEntry(java.lang.String key)
Returns configuration management entry based on the key passed. |
boolean |
isInitialized()
Returns true if configuration Management has loaded configurations. |
void |
reload()
Reloades configurations stored in the configuration management engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void reload() throws ConfigurationManagerException
reload
in interface ConfigurationManagement
ConfigurationManagerException
- if a problem occurs while reading or parsing the configurations.public ConfigurationManagementEntry getConfigurationManagmentEntry(java.lang.String key) throws ConfigurationManagerException
configuration management entry
based on the key passed.
getConfigurationManagmentEntry
in interface ConfigurationManagement
key
- key the entry is stored under
ConfigurationManagerException
- if the entry is not found.public java.util.List<ConfigurationManagementEntry> getConfigurationManagmentEntries()
configuration management entries
managed by this configuration managment engine.
getConfigurationManagmentEntries
in interface ConfigurationManagement
configuration management entries
managed by this configuration managment engine.public boolean isInitialized()
isInitialized
in interface ConfigurationManagement
public ConfigurationManager getConfigurationManager()
getConfigurationManager
in interface ConfigurationManagement
public void addConfigurationManagmentEntry(ConfigurationManagementEntry entry) throws EntryInErrorException
addConfigurationManagmentEntry
in interface ConfigurationManagement
entry
- configuration entry
if
- the entry is in error
EntryInErrorException
- if the entry is not configured properly, for example if the key is not supplied.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |