|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
Exceptionpublic void stop()
public String getConfigResource()
public Set<String> getConfigurationNames()
ConfigurationRegistry
getConfigurationNames in interface ConfigurationRegistry
public void registerConfiguration(String configName,
Configuration config)
throws CloneNotSupportedException
ConfigurationRegistryThe configuration will be cloned before being stored internally, so the copy under the control of the registry will not be affected by any external changes.
registerConfiguration in interface ConfigurationRegistryconfigName - the name of the configurationconfig - the configuration
CloneNotSupportedExceptionpublic void unregisterConfiguration(String configName)
ConfigurationRegistry
unregisterConfiguration in interface ConfigurationRegistryconfigName - the name of the configurationpublic Configuration getConfiguration(String configName)
ConfigurationRegistryclone 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 ConfigurationRegistryconfigName - 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 | |||||||||