|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationRegistry
A registry for Configurations.
| Method Summary | |
|---|---|
Configuration |
getConfiguration(java.lang.String configName)
Gets a clone of the Configuration
registered under the given name. |
java.util.Set<java.lang.String> |
getConfigurationNames()
Gets the names of all registered configurations. |
void |
registerConfiguration(java.lang.String configName,
Configuration config)
Register the given configuration under the given name. |
void |
unregisterConfiguration(java.lang.String configName)
Unregisters the named configuration. |
| Method Detail |
|---|
Configuration getConfiguration(java.lang.String configName)
throws java.lang.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.
java.lang.IllegalArgumentException - if no configuration is registered
under configName
java.lang.Exception
void registerConfiguration(java.lang.String configName,
Configuration config)
throws java.lang.CloneNotSupportedException
configName - the name of the configurationconfig - the configuration
java.lang.CloneNotSupportedException
java.lang.IllegalStateException - if a configuration is already registered
under configNamevoid unregisterConfiguration(java.lang.String configName)
configName - the name of the configuration
java.lang.IllegalStateException - if no configuration is registered
under configNamejava.util.Set<java.lang.String> getConfigurationNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||