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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononProcess(ProcessingContext context, XmlElement xmlElement) Process anXmlElementto 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 anXmlElementto return a specific type of value.- Specified by:
onProcessin classAbstractEmptyElementProcessor<T extends Enum<?>>- Parameters:
context- theProcessingContextin which theXmlElementis being processedxmlElement- theXmlElementto process- Returns:
- a value of type T
- Throws:
ConfigurationException- when a configuration problem was encountered
-