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 ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidparseCacheElement(ConfigurationReader reader, Element element, ConfigurationBuilderHolder holder) protected voidparseDistributedCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected voidparseFileStore(ConfigurationReader reader, ConfigurationBuilderHolder holder) protected voidparseInvalidationCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected voidparseLocalCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) static PropertiesparseProperties(ConfigurationReader reader, Enum<?> outerElement) static PropertiesparseProperties(ConfigurationReader reader, Enum<?> outerElement, Enum<?> collectionElement, Enum<?> itemElement) static PropertiesparseProperties(ConfigurationReader reader, String outerElement, String collectionElement, String itemElement) protected voidparseReplicatedCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected voidparseScatteredCache(ConfigurationReader reader, ConfigurationBuilderHolder holder, String name, boolean template) protected voidparseSingleFileStore(ConfigurationReader reader, ConfigurationBuilderHolder holder) static voidparseStoreAttribute(ConfigurationReader reader, int index, AbstractStoreConfigurationBuilder<?, ?> storeBuilder) This method is public static so that it can be reused by custom cache store/loader configuration parsersstatic voidparseStoreElement(ConfigurationReader reader, StoreConfigurationBuilder<?, ?> storeBuilder) static voidparseStoreProperties(ConfigurationReader reader, StoreConfigurationBuilder<?, ?> storeBuilder) static voidparseStoreProperty(ConfigurationReader reader, StoreConfigurationBuilder<?, ?> storeBuilder) static voidparseStoreWriteBehind(ConfigurationReader reader, AsyncStoreConfigurationBuilder<?> storeBuilder) voidreadElement(ConfigurationReader reader, ConfigurationBuilderHolder holder) The entry point of a configuration parser which gets passed aConfigurationReaderpositioned 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, waitMethods 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:ConfigurationParserThe entry point of a configuration parser which gets passed aConfigurationReaderpositioned at a root element associated with the parser itself according to the registered mapping.- Specified by:
readElementin 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:
getNamespacesin interfaceConfigurationParser
-