Class CounterConfigurationParser
- java.lang.Object
-
- org.infinispan.counter.configuration.CounterConfigurationParser
-
- All Implemented Interfaces:
ConfigurationParser
@MetaInfServices public class CounterConfigurationParser extends 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()
List<AbstractCounterConfiguration>
parseConfigurations(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.
-
-
-
Method Detail
-
readElement
public void readElement(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws 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:
XMLStreamException
-
getNamespaces
public Namespace[] getNamespaces()
- Specified by:
getNamespaces
in interfaceConfigurationParser
-
parseConfigurations
public List<AbstractCounterConfiguration> parseConfigurations(InputStream is) throws XMLStreamException
Reads a list of counter's configuration from anInputStream
.- Parameters:
is
- theInputStream
to read.- Returns:
- a
List
ofAbstractCounterConfiguration
read. - Throws:
XMLStreamException
- if the xml is malformed.
-
-