public class XmlConfigurationParser2x extends Object
Configuration
object. When deployed as a
JBoss MBean, this role is performed by the JBoss Microcontainer. This class is only used internally in unit tests
or within CacheFactory
implementations for standalone JBoss Cache usage.Modifier and Type | Field and Description |
---|---|
static String |
ATTR
Deprecated.
|
static String |
NAME
Deprecated.
|
Constructor and Description |
---|
XmlConfigurationParser2x()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Element |
getMBeanElement(Element root)
Deprecated.
|
protected void |
handleRemovedAttributes(ParsedAttributes attributes)
Deprecated.
Check for and remove any attributes that were supported in the
1.x releases and no longer are.
|
static BuddyReplicationConfig |
parseBuddyReplicationConfig(Element element)
Deprecated.
|
static CacheLoaderConfig |
parseCacheLoaderConfig(Element element)
Deprecated.
|
static String |
parseClusterConfigXml(Element config)
Deprecated.
Parses the cluster config which is used to start a JGroups channel
|
Configuration |
parseConfiguration(Element configurationRoot)
Deprecated.
|
static EvictionConfig |
parseEvictionConfig(Element element)
Deprecated.
|
Configuration |
parseFile(String filename)
Deprecated.
Parses an XML file and returns a new configuration.
|
Configuration |
parseStream(InputStream stream)
Deprecated.
Parses an input stream containing XML text and returns a new configuration.
|
protected void |
setXmlValues(Configuration conf,
Map<String,Element> attribs)
Deprecated.
|
public static final String ATTR
public static final String NAME
public Configuration parseFile(String filename)
filename
- the name of the XML file to parse.public Configuration parseStream(InputStream stream)
stream
- input stream to parse. SHould not be null.public Configuration parseConfiguration(Element configurationRoot)
protected void handleRemovedAttributes(ParsedAttributes attributes)
ConfigurationException
if any are found. Which is done depends
on the attribute:
attributes
- protected void setXmlValues(Configuration conf, Map<String,Element> attribs)
public static BuddyReplicationConfig parseBuddyReplicationConfig(Element element)
public static CacheLoaderConfig parseCacheLoaderConfig(Element element)
public static EvictionConfig parseEvictionConfig(Element element)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.