Class CacheParser
- java.lang.Object
-
- org.infinispan.configuration.parsing.CacheParser
-
- All Implemented Interfaces:
ConfigurationParser
- Direct Known Subclasses:
Parser
@MetaInfServices(ConfigurationParser.class) public class CacheParser extends Object implements ConfigurationParser
This class implements the parser for Infinispan/AS7/EAP/JDG schema files- Since:
- 12.0
- Author:
- Tristan Tarrant, Galder ZamarreƱo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheParser.Mode
static class
CacheParser.TransactionMode
-
Constructor Summary
Constructors Constructor Description CacheParser()
-
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
readAttribute
-
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
readElement
public void readElement(ConfigurationReader reader, ConfigurationBuilderHolder holder)
Description copied from interface:ConfigurationParser
The entry point of a configuration parser which gets passed aConfigurationReader
positioned at a root element associated with the parser itself according to the registered mapping.- Specified by:
readElement
in interfaceConfigurationParser
- Parameters:
reader
- the configuration stream readerholder
- a holder object used by the parser to maintain state
-
parseLocalCache
protected void parseLocalCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template)
-
parseCacheElement
protected final void parseCacheElement(ConfigurationReader reader, Element element, ConfigurationBuilderHolder holder)
-
parseInvalidationCache
protected void parseInvalidationCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template)
-
parseReplicatedCache
protected void parseReplicatedCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template)
-
parseDistributedCache
protected void parseDistributedCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template)
-
parseScatteredCache
protected void parseScatteredCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template)
-
parseFileStore
protected void parseFileStore(ConfigurationReader reader, ConfigurationBuilderHolder holder)
-
parseSingleFileStore
protected void parseSingleFileStore(ConfigurationReader reader, ConfigurationBuilderHolder holder)
-
parseStoreAttribute
public static void parseStoreAttribute(ConfigurationReader reader, int index, AbstractStoreConfigurationBuilder<?,?> storeBuilder)
This method is public static so that it can be reused by custom cache store/loader configuration parsers
-
parseStoreElement
public static void parseStoreElement(ConfigurationReader reader, StoreConfigurationBuilder<?,?> storeBuilder)
-
parseStoreWriteBehind
public static void parseStoreWriteBehind(ConfigurationReader reader, AsyncStoreConfigurationBuilder<?> storeBuilder)
-
parseStoreProperty
public static void parseStoreProperty(ConfigurationReader reader, StoreConfigurationBuilder<?,?> storeBuilder)
-
parseStoreProperties
public static void parseStoreProperties(ConfigurationReader reader, StoreConfigurationBuilder<?,?> storeBuilder)
-
parseProperties
public static Properties parseProperties(ConfigurationReader reader, Enum<?> outerElement)
-
parseProperties
public static Properties parseProperties(ConfigurationReader reader, Enum<?> outerElement, Enum<?> collectionElement, Enum<?> itemElement)
-
parseProperties
public static Properties parseProperties(ConfigurationReader reader, String outerElement, String collectionElement, String itemElement)
-
getNamespaces
public Namespace[] getNamespaces()
- Specified by:
getNamespaces
in interfaceConfigurationParser
-
-