Class AbstractConfigurationReader
java.lang.Object
org.infinispan.commons.configuration.io.AbstractConfigurationReader
- All Implemented Interfaces:
AutoCloseable
,ConfigurationReader
- Direct Known Subclasses:
JsonConfigurationReader
,XmlConfigurationReader
,YamlConfigurationReader
- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.commons.configuration.io.ConfigurationReader
ConfigurationReader.Builder, ConfigurationReader.ElementType
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractConfigurationReader
(ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy) -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeName
(int index) getAttributeValue
(String name) getMapItem
(Enum<?> nameAttribute) getName()
<T> T
getProperty
(String name) void
handleAny
(ConfigurationReaderContext context) void
handleAttribute
(ConfigurationReaderContext context, int i) String[]
protected String
replaceProperties
(String value) void
setSchema
(ConfigurationSchemaVersion schema) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.configuration.io.ConfigurationReader
close, endMapItem, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getElementText, getListAttributeValue, getLocalName, getLocation, getMapItem, getNamespace, hasFeature, hasNext, inTag, inTag, inTag, nextElement, readArray, require, require, require, setAttributeValue, setAttributeValue
-
Field Details
-
namingStrategy
-
-
Constructor Details
-
AbstractConfigurationReader
protected AbstractConfigurationReader(ConfigurationResourceResolver resolver, Properties properties, PropertyReplacer replacer, NamingStrategy namingStrategy)
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceConfigurationReader
-
getResourceResolver
- Specified by:
getResourceResolver
in interfaceConfigurationReader
- Returns:
- the resource resolver used by this ConfigurationReader to find external references (e.g. includes)
-
getNamingStrategy
- Specified by:
getNamingStrategy
in interfaceConfigurationReader
- Returns:
- the naming strategy used by this ConfigurationReader
-
getProperty
- Specified by:
getProperty
in interfaceConfigurationReader
-
getProperties
- Specified by:
getProperties
in interfaceConfigurationReader
-
getSchema
- Specified by:
getSchema
in interfaceConfigurationReader
- Returns:
- the schema
-
setSchema
- Specified by:
setSchema
in interfaceConfigurationReader
- Parameters:
schema
- the ConfigurationSchema in use
-
handleAny
- Specified by:
handleAny
in interfaceConfigurationReader
-
handleAttribute
- Specified by:
handleAttribute
in interfaceConfigurationReader
-
getAttributeName
- Specified by:
getAttributeName
in interfaceConfigurationReader
-
getLocalName
- Specified by:
getLocalName
in interfaceConfigurationReader
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceConfigurationReader
-
getMapItem
- Specified by:
getMapItem
in interfaceConfigurationReader
-
readArray
- Specified by:
readArray
in interfaceConfigurationReader
-
replaceProperties
-