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.voidreadElement(XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder)The entry point of a configuration parser which gets passed aXMLExtendedStreamReaderpositioned 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:ConfigurationParserThe entry point of a configuration parser which gets passed aXMLExtendedStreamReaderpositioned at a root element associated with the parser itself according to the registered mapping.- Specified by:
readElementin 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:
getNamespacesin interfaceConfigurationParser
-
parseConfigurations
public List<AbstractCounterConfiguration> parseConfigurations(InputStream is) throws XMLStreamException
Reads a list of counter's configuration from anInputStream.- Parameters:
is- theInputStreamto read.- Returns:
- a
ListofAbstractCounterConfigurationread. - Throws:
XMLStreamException- if the xml is malformed.
-
-