org.jboss.cache.config.parsing
Class XmlConfigurationParser2x

java.lang.Object
  extended by org.jboss.cache.config.parsing.XmlConfigurationParser2x

Deprecated.

public class XmlConfigurationParser2x
extends Object

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.

Since:
2.00.
Author:
Manik Surtani (manik AT jboss DOT org), Galder Zamarreno

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

ATTR

public static final String ATTR
Deprecated. 
See Also:
Constant Field Values

NAME

public static final String NAME
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

XmlConfigurationParser2x

public XmlConfigurationParser2x()
Deprecated. 
Method Detail

parseFile

public Configuration parseFile(String filename)
Deprecated. 
Parses an XML file and returns a new configuration. This method attempts to look for the file name passed in on the classpath. If not found, it will search for the file on the file system instead, treating the name as an absolute path.

Parameters:
filename - the name of the XML file to parse.
Returns:
a configured Configuration object representing the configuration in the file

parseStream

public Configuration parseStream(InputStream stream)
Deprecated. 
Parses an input stream containing XML text and returns a new configuration.

Parameters:
stream - input stream to parse. SHould not be null.
Returns:
a configured Configuration object representing the configuration in the stream
Since:
2.1.0

parseConfiguration

public Configuration parseConfiguration(Element configurationRoot)
Deprecated. 

handleRemovedAttributes

protected void handleRemovedAttributes(ParsedAttributes attributes)
Deprecated. 
Check for and remove any attributes that were supported in the 1.x releases and no longer are. Log a WARN or throw a ConfigurationException if any are found. Which is done depends on the attribute:

Parameters:
attributes -

getMBeanElement

protected Element getMBeanElement(Element root)
Deprecated. 

setXmlValues

protected void setXmlValues(Configuration conf,
                            Map<String,Element> attribs)
Deprecated. 

parseBuddyReplicationConfig

public static BuddyReplicationConfig parseBuddyReplicationConfig(Element element)
Deprecated. 

parseCacheLoaderConfig

public static CacheLoaderConfig parseCacheLoaderConfig(Element element)
Deprecated. 

parseEvictionConfig

public static EvictionConfig parseEvictionConfig(Element element)
Deprecated. 

parseClusterConfigXml

public static String parseClusterConfigXml(Element config)
Deprecated. 
Parses the cluster config which is used to start a JGroups channel

Parameters:
config - an old-style JGroups protocol config String


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.