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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads a list of counter's configuration from anInputStream.voidreadElement(ConfigurationReader reader, ConfigurationBuilderHolder holder) The entry point of a configuration parser which gets passed aConfigurationReaderpositioned at a root element associated with the parser itself according to the registered mapping.Methods inherited from class org.infinispan.counter.configuration.CounterParser
readElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.configuration.parsing.ConfigurationParser
readAttribute
-
Constructor Details
-
CounterConfigurationParser
public CounterConfigurationParser()
-
-
Method Details
-
readElement
Description copied from interface:ConfigurationParserThe entry point of a configuration parser which gets passed aConfigurationReaderpositioned at a root element associated with the parser itself according to the registered mapping.- Specified by:
readElementin interfaceConfigurationParser- Overrides:
readElementin classCounterParser- Parameters:
reader- the configuration stream readerholder- a holder object used by the parser to maintain state
-
getNamespaces
- Specified by:
getNamespacesin interfaceConfigurationParser- Overrides:
getNamespacesin classCounterParser
-
parseConfigurations
public Map<String,AbstractCounterConfiguration> parseConfigurations(InputStream is) throws IOException Reads a list of counter's configuration from anInputStream.- Parameters:
is- theInputStreamto read.- Returns:
- a
ListofAbstractCounterConfigurationread. - Throws:
IOException
-