Class Parser
- java.lang.Object
-
- org.infinispan.configuration.parsing.Parser
-
- All Implemented Interfaces:
ConfigurationParser
@MetaInfServices public class Parser extends 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
-
-
-
Method Detail
-
readElement
public void readElement(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws 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:
XMLStreamException
-
parseCacheElement
protected void parseCacheElement(XMLExtendedStreamReader reader, Element element, ConfigurationBuilderHolder holder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseLocking
protected void parseLocking(XMLExtendedStreamReader reader, ConfigurationBuilder builder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseTransaction
protected void parseTransaction(XMLExtendedStreamReader reader, ConfigurationBuilder builder, ConfigurationBuilderHolder holder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseDataType
protected void parseDataType(XMLExtendedStreamReader reader, ConfigurationBuilder builder, ConfigurationBuilderHolder holder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseFileStore
protected void parseFileStore(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseStoreAttribute
public static void parseStoreAttribute(XMLExtendedStreamReader reader, int index, AbstractStoreConfigurationBuilder<?,?> storeBuilder) throws XMLStreamException
This method is public static so that it can be reused by custom cache store/loader configuration parsers- Throws:
XMLStreamException
-
parseStoreElement
public static void parseStoreElement(XMLExtendedStreamReader reader, StoreConfigurationBuilder<?,?> storeBuilder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseStoreWriteBehind
public static void parseStoreWriteBehind(XMLExtendedStreamReader reader, AsyncStoreConfigurationBuilder<?> storeBuilder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseStoreProperty
public static void parseStoreProperty(XMLExtendedStreamReader reader, StoreConfigurationBuilder<?,?> storeBuilder) throws XMLStreamException
- Throws:
XMLStreamException
-
parseProperties
public static Properties parseProperties(XMLExtendedStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
getNamespaces
public Namespace[] getNamespaces()
- Specified by:
getNamespaces
in interfaceConfigurationParser
-
-