Class CounterConfigurationParser
- java.lang.Object
-
- org.infinispan.counter.configuration.CounterConfigurationParser
-
- All Implemented Interfaces:
ConfigurationParser
@MetaInfServices public class CounterConfigurationParser extends java.lang.Object implements ConfigurationParser
Counters configuration parser- Since:
- 9.0
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description CounterConfigurationParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Namespace[]
getNamespaces()
java.util.List<AbstractCounterConfiguration>
parseConfigurations(java.io.InputStream is)
Reads a list of counter's configuration from anInputStream
.void
readElement(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder)
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.-
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
getConfigurationBuilderInfo
-
-
-
-
Method Detail
-
readElement
public void readElement(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException
-
getNamespaces
public Namespace[] getNamespaces()
- Specified by:
getNamespaces
in interfaceConfigurationParser
-
parseConfigurations
public java.util.List<AbstractCounterConfiguration> parseConfigurations(java.io.InputStream is) throws javax.xml.stream.XMLStreamException
Reads a list of counter's configuration from anInputStream
.- Parameters:
is
- theInputStream
to read.- Returns:
- a
List
ofAbstractCounterConfiguration
read. - Throws:
javax.xml.stream.XMLStreamException
- if the xml is malformed.
-
-