public class SimpleAttributeProcessor<T> extends Object implements AttributeProcessor<T>
SimpleAttributeProcessor is a simple AttributeProcessor implementation that will construct, initialize (via constructor injection) and return a specific type of object based on information in an XmlAttribute.| Constructor and Description |
|---|
SimpleAttributeProcessor(Class<T> clzAttribute)
Construct a
SimpleAttributeProcessor. |
| Modifier and Type | Method and Description |
|---|---|
T |
process(ProcessingContext context, XmlAttribute attribute)
Process an
XmlAttribute and return a specific type of value. |
public SimpleAttributeProcessor(Class<T> clzAttribute)
SimpleAttributeProcessor.clzAttribute - the Class of the attribute value to be returnedpublic T process(ProcessingContext context, XmlAttribute attribute) throws ConfigurationException
XmlAttribute and return a specific type of value.process in interface AttributeProcessor<T>context - the ProcessingContext in which the XmlAttribute is being processedattribute - the XmlAttribute to be processedConfigurationException - when a configuration problem was encountered