public interface ConfigurationRegistry
Configurations.| Modifier and Type | Method and Description |
|---|---|
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.
|
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 configurationConfiguration. Will not be null.IllegalArgumentException - if no configuration is registered under configNameExceptionvoid registerConfiguration(String configName, Configuration config) throws CloneNotSupportedException
configName - the name of the configurationconfig - the configurationCloneNotSupportedExceptionIllegalStateException - if a configuration is already registered under configNamevoid unregisterConfiguration(String configName)
configName - the name of the configurationIllegalStateException - if no configuration is registered under configNameCopyright © 2012 JBoss by Red Hat. All Rights Reserved.