Package com.tangosol.config.xml
Class SimpleAttributeProcessor<T>
- java.lang.Object
-
- com.tangosol.config.xml.SimpleAttributeProcessor<T>
-
- All Implemented Interfaces:
AttributeProcessor<T>
public class SimpleAttributeProcessor<T> extends Object implements AttributeProcessor<T>
ASimpleAttributeProcessor
is a simpleAttributeProcessor
implementation that will construct, initialize (via constructor injection) and return a specific type of object based on information in anXmlAttribute
.- Since:
- Coherence 12.1.2
- Author:
- dr 2011.05.14, bo 2011.06.22
-
-
Constructor Summary
Constructors Constructor Description SimpleAttributeProcessor(Class<T> clzAttribute)
Construct aSimpleAttributeProcessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
process(ProcessingContext context, XmlAttribute attribute)
Process anXmlAttribute
and return a specific type of value.
-
-
-
Constructor Detail
-
SimpleAttributeProcessor
public SimpleAttributeProcessor(Class<T> clzAttribute)
Construct aSimpleAttributeProcessor
.- Parameters:
clzAttribute
- theClass
of the attribute value to be returned
-
-
Method Detail
-
process
public T process(ProcessingContext context, XmlAttribute attribute) throws ConfigurationException
Process anXmlAttribute
and return a specific type of value.- Specified by:
process
in interfaceAttributeProcessor<T>
- Parameters:
context
- theProcessingContext
in which theXmlAttribute
is being processedattribute
- theXmlAttribute
to be processed- Returns:
- a value of type T
- Throws:
ConfigurationException
- when a configuration problem was encountered
-
-