org.jboss.cache.config.parsing
Class CacheConfigsXmlParser
java.lang.Object
org.jboss.cache.config.parsing.CacheConfigsXmlParser
- Direct Known Subclasses:
- CacheConfigsXmlParser
public class CacheConfigsXmlParser
- extends java.lang.Object
Parser able to parse a series of cache configurations stored in an
XML document with the following structure:
....
....
The '....' represents the normal content of the mbean element in a
JBC -service.xml config file.
- Version:
- $Revision: 7168 $
- Author:
- Brian Stansberry
Field Summary |
static java.lang.String |
CONFIG_NAME
Name of the attribute in a cache-config element that specifies
the name of the configuration. |
static java.lang.String |
CONFIG_ROOT
Name of the element that represents an individual cache configuration
in a cache configs XML document. |
static java.lang.String |
DOCUMENT_ROOT
Name of the root element in a cache configs XML document |
static java.lang.String |
QUALIFIED_CONFIG_ROOT
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOCUMENT_ROOT
public static final java.lang.String DOCUMENT_ROOT
- Name of the root element in a cache configs XML document
- See Also:
- Constant Field Values
CONFIG_ROOT
public static final java.lang.String CONFIG_ROOT
- Name of the element that represents an individual cache configuration
in a cache configs XML document.
- See Also:
- Constant Field Values
QUALIFIED_CONFIG_ROOT
public static final java.lang.String QUALIFIED_CONFIG_ROOT
- See Also:
- Constant Field Values
CONFIG_NAME
public static final java.lang.String CONFIG_NAME
- Name of the attribute in a
cache-config
element that specifies
the name of the configuration.
- See Also:
- Constant Field Values
CacheConfigsXmlParser
public CacheConfigsXmlParser()
parseConfigs
public java.util.Map<java.lang.String,Configuration> parseConfigs(java.lang.String fileName)
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
parseConfigs
public java.util.Map<java.lang.String,Configuration> parseConfigs(java.io.InputStream stream,
java.lang.String fileName)
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.