public class EnumProcessor<T extends Enum<?>> extends AbstractEmptyElementProcessor<T>
EnumProcessor is responsible for processing Coherence Enum values
and return the corresponding Enum type.AbstractEmptyElementProcessor.EmptyElementBehavior| Constructor and Description |
|---|
EnumProcessor(Class<T> clzEnum)
Constructs a
EnumProcessor. |
| Modifier and Type | Method and Description |
|---|---|
T |
onProcess(ProcessingContext context,
XmlElement xmlElement)
Process an
XmlElement to return a specific type of value. |
accepts, isEmptyElement, processpublic EnumProcessor(Class<T> clzEnum)
EnumProcessor.clzEnum - the class type of enumpublic T onProcess(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement to return a specific type of value.onProcess in class AbstractEmptyElementProcessor<T extends Enum<?>>context - the ProcessingContext in which the
XmlElement is being processedxmlElement - the XmlElement to processConfigurationException - when a configuration problem was encountered