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>
A
EnumProcessor
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
-
Method Summary
Modifier and TypeMethodDescriptiononProcess
(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 Details
-
EnumProcessor
Constructs aEnumProcessor
.- Parameters:
clzEnum
- the class type of enum
-
-
Method Details
-
onProcess
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
-