public interface ConfigurationRegistry
Configuration
s.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 configName
Exception
void registerConfiguration(String configName, Configuration config) throws CloneNotSupportedException
configName
- the name of the configurationconfig
- the configurationCloneNotSupportedException
IllegalStateException
- if a configuration is already registered under configName
void unregisterConfiguration(String configName)
configName
- the name of the configurationIllegalStateException
- if no configuration is registered under configName
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.