|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.parsing.XmlParserBase
org.infinispan.config.parsing.XmlConfigurationParserImpl
public class XmlConfigurationParserImpl
The default XML configuration parser
Constructor Summary | |
---|---|
XmlConfigurationParserImpl()
Constructs a new parser |
|
XmlConfigurationParserImpl(InputStream inputStream)
Constructs a parser and initializes it with the input stream passed in, by calling initialize(InputStream) . |
|
XmlConfigurationParserImpl(String fileName)
Constructs a parser and initializes it with the file name passed in, by calling initialize(String) . |
Method Summary | |
---|---|
void |
configureGlobalJmxStatistics(Element e,
GlobalConfiguration c)
|
void |
initialize(InputStream inputStream)
Initializes the parser with a stream that contains the contents of an XML configuration file to parse. |
void |
initialize(String fileName)
Initializes the parser with a String that represents the name of the configuration file to parse. |
boolean |
isValidElementRoot(Element element)
Tests whether the element passed in is a valid config element. |
Configuration |
parseDefaultConfiguration()
Parses the default template configuration. |
GlobalConfiguration |
parseGlobalConfiguration()
GlobalConfiguration would also have a reference to the template default configuration, accessible via GlobalConfiguration.getDefaultConfiguration()
This is typically used to configure a DefaultCacheManager |
Map<String,Configuration> |
parseNamedConfigurations()
Parses and retrieves configuration overrides for named caches. |
Methods inherited from class org.infinispan.config.parsing.XmlParserBase |
---|
existsAttribute, getAllElements, getAllElementsInCoreNS, getAttributeValue, getBoolean, getInt, getLong, getSingleElement, getSingleElementInCoreNS |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlConfigurationParserImpl()
public XmlConfigurationParserImpl(String fileName) throws IOException
initialize(String)
.
fileName
- file name to initialize the parser with
IOException
- if there is a problem reading or locating the file.public XmlConfigurationParserImpl(InputStream inputStream) throws IOException
initialize(InputStream)
.
inputStream
- input stream to initialize the parser with
IOException
- if there is a problem reading the streamMethod Detail |
---|
public void initialize(String fileName) throws IOException
XmlConfigurationParser
initialize
in interface XmlConfigurationParser
fileName
- name of file that contains the XML configuration
IOException
- if there is a problem reading the configuration filepublic void initialize(InputStream inputStream) throws IOException
XmlConfigurationParser
initialize
in interface XmlConfigurationParser
inputStream
- stream to read from
IOException
- if there is a problem reading from the streampublic Configuration parseDefaultConfiguration() throws ConfigurationException
XmlConfigurationParser
parseDefaultConfiguration
in interface XmlConfigurationParser
ConfigurationException
- if there is a problem parsing the configuration XMLpublic Map<String,Configuration> parseNamedConfigurations() throws ConfigurationException
XmlConfigurationParser
parseNamedConfigurations
in interface XmlConfigurationParser
ConfigurationException
- if there is a problem parsing the configuration XMLpublic GlobalConfiguration parseGlobalConfiguration()
XmlConfigurationParser
GlobalConfiguration.getDefaultConfiguration()
This is typically used to configure a DefaultCacheManager
parseGlobalConfiguration
in interface XmlConfigurationParser
public void configureGlobalJmxStatistics(Element e, GlobalConfiguration c)
public boolean isValidElementRoot(Element element)
element
- element to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |