|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.config.parsing.XmlConfigurationParser2x
public class XmlConfigurationParser2x
Reads in XMLconfiguration files and spits out a 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.
Field Summary | |
---|---|
static String |
ATTR
Deprecated. |
static String |
NAME
Deprecated. |
Constructor Summary | |
---|---|
XmlConfigurationParser2x()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTR
public static final String NAME
Constructor Detail |
---|
public XmlConfigurationParser2x()
Method Detail |
---|
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 Element getMBeanElement(Element root)
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)
public static String parseClusterConfigXml(Element config)
config
- an old-style JGroups protocol config String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |