org.jboss.cache.factories
Class CacheConfigsXmlParser
java.lang.Object
org.jboss.cache.factories.CacheConfigsXmlParser
public class CacheConfigsXmlParser
- extends 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: 1.1 $
- Author:
- Brian Stansberry
Field Summary |
static String |
CONFIG_NAME
Name of the attribute in a cache-config element that specifies
the name of the configuration. |
static String |
CONFIG_ROOT
Name of the element that represents an individual cache configuration
in a cache configs XML document. |
static String |
DOCUMENT_ROOT
Name of the root element in a cache configs XML document |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOCUMENT_ROOT
public static final String DOCUMENT_ROOT
- Name of the root element in a cache configs XML document
- See Also:
- Constant Field Values
CONFIG_ROOT
public static final String CONFIG_ROOT
- Name of the element that represents an individual cache configuration
in a cache configs XML document.
- See Also:
- Constant Field Values
CONFIG_NAME
public static final 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 Map<String,Configuration> parseConfigs(String fileName)
throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
parseConfigs
public Map<String,Configuration> parseConfigs(InputStream stream)
throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
getAsInputStreamFromClassLoader
protected InputStream getAsInputStreamFromClassLoader(String filename)
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.