public class SimpleElementProcessor<T> extends Object implements ElementProcessor<T>
SimpleElementProcessor is an ElementProcessor implementation that will construct, initialize (via constructor injection) and return a specific type of object based on information in an XmlElement.| Constructor and Description |
|---|
SimpleElementProcessor(Class<T> clzElement)
Construct a
SimpleElementProcessor. |
| Modifier and Type | Method and Description |
|---|---|
T |
process(ProcessingContext context, XmlElement element)
Process an
XmlElement to return a specific type of value. |
public SimpleElementProcessor(Class<T> clzElement)
SimpleElementProcessor.clzElement - The Class of objects returned by the ElementProcessorpublic T process(ProcessingContext context, XmlElement element) throws ConfigurationException
XmlElement to return a specific type of value.process in interface ElementProcessor<T>context - the ProcessingContext in which the XmlElement is being processedelement - the XmlElement to processConfigurationException - when a configuration problem was encountered