public class CustomizableBuilderProcessor<T> extends Object implements ElementProcessor<T>
CustomizableBuilderProcessor
is a multi-purpose ElementProcessor
responsible for processing xml elements that produce objects supporting BuilderCustomization
.Constructor and Description |
---|
CustomizableBuilderProcessor(Class<T> clzToRealize)
Constructs a
CustomizableBuilderProcessor for the specified Class . |
Modifier and Type | Method and Description |
---|---|
protected T |
instantiate()
Instantiate the required class to inject and return.
|
T |
process(ProcessingContext context,
XmlElement element)
Process an
XmlElement to return a specific type of value. |
public CustomizableBuilderProcessor(Class<T> clzToRealize)
CustomizableBuilderProcessor
for the specified Class
.clzToRealize
- the class that will be instantiated, injected and returned during processingpublic 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 encounteredprotected T instantiate()