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
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
parseCacheElement
(ConfigurationReader reader, Element element, ConfigurationBuilderHolder holder) protected void
parseDistributedCache
(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected void
parseFileStore
(ConfigurationReader reader, ConfigurationBuilderHolder holder) protected void
parseInvalidationCache
(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected void
parseLocalCache
(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) static Properties
parseProperties
(ConfigurationReader reader, Enum<?> outerElement) static Properties
parseProperties
(ConfigurationReader reader, Enum<?> outerElement, Enum<?> collectionElement, Enum<?> itemElement) static Properties
parseProperties
(ConfigurationReader reader, String outerElement, String collectionElement, String itemElement) protected void
parseReplicatedCache
(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected void
parseScatteredCache
(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected void
parseSingleFileStore
(ConfigurationReader reader, ConfigurationBuilderHolder holder) 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 parsersstatic void
parseStoreElement
(ConfigurationReader reader, StoreConfigurationBuilder<?, ?> storeBuilder) static void
parseStoreProperties
(ConfigurationReader reader, StoreConfigurationBuilder<?, ?> storeBuilder) static void
parseStoreProperty
(ConfigurationReader reader, StoreConfigurationBuilder<?, ?> storeBuilder) static void
parseStoreWriteBehind
(ConfigurationReader reader, AsyncStoreConfigurationBuilder<?> storeBuilder) void
readElement
(ConfigurationReader reader, ConfigurationBuilderHolder holder) 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.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 Details
-
NAMESPACE
- See Also:
-
IGNORE_DUPLICATES
- See Also:
-
ALLOWED_DUPLICATES
- See Also:
-
-
Constructor Details
-
CacheParser
public CacheParser()
-
-
Method Details
-
readElement
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
-
parseSingleFileStore
-
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
-
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
- Specified by:
getNamespaces
in interfaceConfigurationParser
-