Class CounterConfigurationParser
java.lang.Object
org.infinispan.counter.configuration.CounterParser
org.infinispan.counter.configuration.CounterConfigurationParser
- All Implemented Interfaces:
ConfigurationParser
@MetaInfServices(ConfigurationParser.class)
public class CounterConfigurationParser
extends CounterParser
Counters configuration parser
- Since:
- 13.0
- Author:
- Pedro Ruivo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReads a list of counter's configuration from anInputStream
.void
readElement
(ConfigurationReader reader, ConfigurationBuilderHolder holder) The entry point of a configuration parser which gets passed aConfigurationReader
positioned at a root element associated with the parser itself according to the registered mapping.Methods inherited from class org.infinispan.counter.configuration.CounterParser
readElement
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
readAttribute
-
Constructor Details
-
CounterConfigurationParser
public CounterConfigurationParser()
-
-
Method Details
-
readElement
Description copied from interface:ConfigurationParser
The entry point of a configuration parser which gets passed aConfigurationReader
positioned at a root element associated with the parser itself according to the registered mapping.- Specified by:
readElement
in interfaceConfigurationParser
- Overrides:
readElement
in classCounterParser
- Parameters:
reader
- the configuration stream readerholder
- a holder object used by the parser to maintain state
-
getNamespaces
- Specified by:
getNamespaces
in interfaceConfigurationParser
- Overrides:
getNamespaces
in classCounterParser
-
parseConfigurations
public Map<String,AbstractCounterConfiguration> parseConfigurations(InputStream is) throws IOException Reads a list of counter's configuration from anInputStream
.- Parameters:
is
- theInputStream
to read.- Returns:
- a
List
ofAbstractCounterConfiguration
read. - Throws:
IOException
-