|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.config.XmlParsingConfigurationRegistry
public class XmlParsingConfigurationRegistry
ConfigurationRegistry
that obtains its initial set of configurations
by parsing an XML document.
Constructor Summary | |
---|---|
XmlParsingConfigurationRegistry(String configResource)
|
Method Summary | |
---|---|
String |
getConfigResource()
|
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 |
start()
|
void |
stop()
|
void |
unregisterConfiguration(String configName)
Unregisters the named configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlParsingConfigurationRegistry(String configResource)
Method Detail |
---|
public void start() throws Exception
Exception
public void stop()
public String getConfigResource()
public Set<String> getConfigurationNames()
ConfigurationRegistry
getConfigurationNames
in interface ConfigurationRegistry
public void registerConfiguration(String configName, Configuration config) throws CloneNotSupportedException
ConfigurationRegistry
registerConfiguration
in interface ConfigurationRegistry
configName
- the name of the configurationconfig
- the configuration
CloneNotSupportedException
public void unregisterConfiguration(String configName)
ConfigurationRegistry
unregisterConfiguration
in interface ConfigurationRegistry
configName
- the name of the configurationpublic Configuration getConfiguration(String configName)
ConfigurationRegistry
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.
getConfiguration
in interface ConfigurationRegistry
configName
- the name of the configuration
Configuration
. Will not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |