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>
ASimpleElementProcessoris anElementProcessorimplementation 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 Tprocess(ProcessingContext context, XmlElement element)Process anXmlElementto return a specific type of value.
-
-
-
Constructor Detail
-
SimpleElementProcessor
public SimpleElementProcessor(Class<T> clzElement)
Construct aSimpleElementProcessor.- Parameters:
clzElement- TheClassof objects returned by theElementProcessor
-
-
Method Detail
-
process
public T process(ProcessingContext context, XmlElement element) throws ConfigurationException
Process anXmlElementto return a specific type of value.- Specified by:
processin interfaceElementProcessor<T>- Parameters:
context- theProcessingContextin which theXmlElementis being processedelement- theXmlElementto process- Returns:
- a value of type T
- Throws:
ConfigurationException- when a configuration problem was encountered
-
-