Class CustomizableBuilderProcessor<T>
- java.lang.Object
-
- com.tangosol.coherence.config.xml.processor.CustomizableBuilderProcessor<T>
-
- All Implemented Interfaces:
ElementProcessor<T>
- Direct Known Subclasses:
CompositeSchemeProcessor
,CustomizableBinaryStoreManagerBuilderProcessor
,InterceptorProcessor
public class CustomizableBuilderProcessor<T> extends Object implements ElementProcessor<T>
ACustomizableBuilderProcessor
is a multi-purposeElementProcessor
responsible for processing xml elements that produce objects supportingBuilderCustomization
.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.11.30, bo 2012.02.09
-
-
Constructor Summary
Constructors Constructor Description CustomizableBuilderProcessor(Class<T> clzToRealize)
Constructs aCustomizableBuilderProcessor
for the specifiedClass
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
instantiate()
Instantiate the required class to inject and return.T
process(ProcessingContext context, XmlElement element)
Process anXmlElement
to return a specific type of value.
-
-
-
Constructor Detail
-
CustomizableBuilderProcessor
public CustomizableBuilderProcessor(Class<T> clzToRealize)
Constructs aCustomizableBuilderProcessor
for the specifiedClass
.- Parameters:
clzToRealize
- the class that will be instantiated, injected and returned during processing
-
-
Method Detail
-
process
public T process(ProcessingContext context, XmlElement element) throws ConfigurationException
Process anXmlElement
to return a specific type of value.- Specified by:
process
in interfaceElementProcessor<T>
- Parameters:
context
- theProcessingContext
in which theXmlElement
is being processedelement
- theXmlElement
to process- Returns:
- a value of type T
- Throws:
ConfigurationException
- when a configuration problem was encountered
-
instantiate
protected T instantiate()
Instantiate the required class to inject and return.- Returns:
- object to be injected
-
-