Package com.tangosol.config.xml
Class SimpleElementProcessor<T>
- java.lang.Object
-
- com.tangosol.config.xml.SimpleElementProcessor<T>
-
- All Implemented Interfaces:
ElementProcessor<T>
public class SimpleElementProcessor<T> extends Object implements ElementProcessor<T>
ASimpleElementProcessor
is anElementProcessor
implementation that will construct, initialize (via constructor injection) and return a specific type of object based on information in anXmlElement
.- Since:
- Coherence 12.1.2
- Author:
- dr 2011.05.14, bo 2011.06.23
-
-
Constructor Summary
Constructors Constructor Description SimpleElementProcessor(Class<T> clzElement)
Construct aSimpleElementProcessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
process(ProcessingContext context, XmlElement element)
Process anXmlElement
to return a specific type of value.
-
-
-
Constructor Detail
-
SimpleElementProcessor
public SimpleElementProcessor(Class<T> clzElement)
Construct aSimpleElementProcessor
.- Parameters:
clzElement
- TheClass
of objects returned by theElementProcessor
-
-
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
-
-