Class Parser
- java.lang.Object
-
- org.infinispan.configuration.parsing.Parser
-
- All Implemented Interfaces:
ConfigurationParser
@MetaInfServices public class Parser extends java.lang.Object implements ConfigurationParser
This class implements the parser for Infinispan/AS7/EAP/JDG schema files- Since:
- 9.0
- Author:
- Tristan Tarrant, Galder ZamarreƱo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Parser.Mode
static class
Parser.TransactionMode
-
Constructor Summary
Constructors Constructor Description Parser()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.configuration.parsing.ConfigurationParser
getConfigurationBuilderInfo
-
-
-
-
Method Detail
-
readElement
public void readElement(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws javax.xml.stream.XMLStreamException
Description copied from interface:ConfigurationParser
The entry point of a configuration parser which gets passed aXMLExtendedStreamReader
positioned at a root element associated with the parser itself according to the registered mapping.- Specified by:
readElement
in interfaceConfigurationParser
- Parameters:
reader
- the XML stream readerholder
- a holder object used by the parser to maintain state- Throws:
javax.xml.stream.XMLStreamException
-
parseCacheElement
protected void parseCacheElement(XMLExtendedStreamReader reader, Element element, ConfigurationBuilderHolder holder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseLocking
protected void parseLocking(XMLExtendedStreamReader reader, ConfigurationBuilder builder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseTransaction
protected void parseTransaction(XMLExtendedStreamReader reader, ConfigurationBuilder builder, ConfigurationBuilderHolder holder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseDataType
protected void parseDataType(XMLExtendedStreamReader reader, ConfigurationBuilder builder, ConfigurationBuilderHolder holder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseFileStore
protected void parseFileStore(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseStoreAttribute
public static void parseStoreAttribute(XMLExtendedStreamReader reader, int index, AbstractStoreConfigurationBuilder<?,?> storeBuilder) throws javax.xml.stream.XMLStreamException
This method is public static so that it can be reused by custom cache store/loader configuration parsers- Throws:
javax.xml.stream.XMLStreamException
-
parseStoreElement
public static void parseStoreElement(XMLExtendedStreamReader reader, StoreConfigurationBuilder<?,?> storeBuilder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseStoreWriteBehind
public static void parseStoreWriteBehind(XMLExtendedStreamReader reader, AsyncStoreConfigurationBuilder<?> storeBuilder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseStoreProperty
public static void parseStoreProperty(XMLExtendedStreamReader reader, StoreConfigurationBuilder<?,?> storeBuilder) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parseProperties
public static java.util.Properties parseProperties(XMLExtendedStreamReader reader) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
getNamespaces
public Namespace[] getNamespaces()
- Specified by:
getNamespaces
in interfaceConfigurationParser
-
-