org.jboss.cache.factories
Class XmlConfigurationParser

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.

NAME

XmlConfigurationParser

parseFile

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