|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationRegistry
A registry for Configuration
s.
Method Summary | |
---|---|
Configuration |
getConfiguration(String configName)
Gets a clone of the Configuration
registered under the given name. |
Set<String> |
getConfigurationNames()
Gets the names of all registered configurations. |
void |
registerConfiguration(String configName,
Configuration config)
Register the given configuration under the given name. |
void |
unregisterConfiguration(String configName)
Unregisters the named configuration. |
Method Detail |
---|
Configuration getConfiguration(String configName) throws Exception
clone
of the Configuration
registered under the given name.
The returned object is a clone of the internally held configuration, so any changes made to it by the caller will not affect the internal state of this registry.
configName
- the name of the configuration
Configuration
. Will not be null
.
IllegalArgumentException
- if no configuration is registered
under configName
Exception
void registerConfiguration(String configName, Configuration config) throws CloneNotSupportedException
The configuration will be cloned before being stored internally, so the copy under the control of the registry will not be affected by any external changes.
configName
- the name of the configurationconfig
- the configuration
CloneNotSupportedException
IllegalStateException
- if a configuration is already registered
under configName
void unregisterConfiguration(String configName)
configName
- the name of the configuration
IllegalStateException
- if no configuration is registered
under configName
Set<String> getConfigurationNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |