Class EnumProcessor<T extends Enum<?>>
- java.lang.Object
-
- com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor<T>
-
- com.tangosol.coherence.config.xml.processor.EnumProcessor<T>
-
- All Implemented Interfaces:
ConditionalElementProcessor<T>
,ElementProcessor<T>
public class EnumProcessor<T extends Enum<?>> extends AbstractEmptyElementProcessor<T>
AEnumProcessor
is responsible for processing Coherence Enum values and return the corresponding Enum type.- Since:
- Coherence 12.2.1
- Author:
- lh 2016.06.14
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
AbstractEmptyElementProcessor.EmptyElementBehavior
-
-
Constructor Summary
Constructors Constructor Description EnumProcessor(Class<T> clzEnum)
Constructs aEnumProcessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
onProcess(ProcessingContext context, XmlElement xmlElement)
Process anXmlElement
to return a specific type of value.-
Methods inherited from class com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
accepts, isEmptyElement, process
-
-
-
-
Constructor Detail
-
EnumProcessor
public EnumProcessor(Class<T> clzEnum)
Constructs aEnumProcessor
.- Parameters:
clzEnum
- the class type of enum
-
-
Method Detail
-
onProcess
public T onProcess(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
Process anXmlElement
to return a specific type of value.- Specified by:
onProcess
in classAbstractEmptyElementProcessor<T extends Enum<?>>
- Parameters:
context
- theProcessingContext
in which theXmlElement
is being processedxmlElement
- theXmlElement
to process- Returns:
- a value of type T
- Throws:
ConfigurationException
- when a configuration problem was encountered
-
-