|
||||||||||
| 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(java.lang.String configResource)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getConfigResource()
|
Configuration |
getConfiguration(java.lang.String configName)
Gets a clone of the Configuration
registered under the given name. |
java.util.Set<java.lang.String> |
getConfigurationNames()
Gets the names of all registered configurations. |
void |
registerConfiguration(java.lang.String configName,
Configuration config)
Register the given configuration under the given name. |
void |
start()
|
void |
stop()
|
void |
unregisterConfiguration(java.lang.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(java.lang.String configResource)
| Method Detail |
|---|
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
public java.lang.String getConfigResource()
public java.util.Set<java.lang.String> getConfigurationNames()
ConfigurationRegistry
getConfigurationNames in interface ConfigurationRegistry
public void registerConfiguration(java.lang.String configName,
Configuration config)
throws java.lang.CloneNotSupportedException
ConfigurationRegistry
registerConfiguration in interface ConfigurationRegistryconfigName - the name of the configurationconfig - the configuration
java.lang.CloneNotSupportedExceptionpublic void unregisterConfiguration(java.lang.String configName)
ConfigurationRegistry
unregisterConfiguration in interface ConfigurationRegistryconfigName - the name of the configurationpublic Configuration getConfiguration(java.lang.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 | |||||||||