|
||||||||||
| 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(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
configName - the name of the configurationconfig - the configuration
CloneNotSupportedException
IllegalStateException - if a configuration is already registered
under configNamevoid unregisterConfiguration(String configName)
configName - the name of the configuration
IllegalStateException - if no configuration is registered
under configNameSet<String> getConfigurationNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||