public class ServiceBuilderProcessor<T extends ServiceBuilder> extends Object implements ElementProcessor<T>
ServiceBuilderProcessor
is an ElementProcessor
responsible for producing various kinds of
ServiceBuilder
s.Constructor and Description |
---|
ServiceBuilderProcessor(Class<T> clzToRealize)
|
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 T process(ProcessingContext context, XmlElement element) throws ConfigurationException
XmlElement
to return a specific type of value.process
in interface ElementProcessor<T extends ServiceBuilder>
context
- the ProcessingContext
in which the
XmlElement
is being processedelement
- the XmlElement
to processConfigurationException
- when a configuration problem was encounteredprotected T instantiate()