|
||||||||||
| 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 stream| Method Detail |
|---|
public void initialize(String fileName)
throws IOException
XmlConfigurationParser
initialize in interface XmlConfigurationParserfileName - name of file that contains the XML configuration
IOException - if there is a problem reading the configuration file
public void initialize(InputStream inputStream)
throws IOException
XmlConfigurationParser
initialize in interface XmlConfigurationParserinputStream - stream to read from
IOException - if there is a problem reading from the stream
public Configuration parseDefaultConfiguration()
throws ConfigurationException
XmlConfigurationParser
parseDefaultConfiguration in interface XmlConfigurationParserConfigurationException - if there is a problem parsing the configuration XML
public Map<String,Configuration> parseNamedConfigurations()
throws ConfigurationException
XmlConfigurationParser
parseNamedConfigurations in interface XmlConfigurationParserConfigurationException - if there is a problem parsing the configuration XMLpublic GlobalConfiguration parseGlobalConfiguration()
XmlConfigurationParserGlobalConfiguration.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 | |||||||||