Package com.tangosol.config.xml
Class SimpleAttributeProcessor<T>
java.lang.Object
com.tangosol.config.xml.SimpleAttributeProcessor<T>
- All Implemented Interfaces:
AttributeProcessor<T>
A
SimpleAttributeProcessor
is a simple AttributeProcessor
implementation that will construct,
initialize (via constructor injection) and return a specific type of object based on information in
an XmlAttribute
.- Since:
- Coherence 12.1.2
- Author:
- dr 2011.05.14, bo 2011.06.22
-
Constructor Summary
ConstructorDescriptionSimpleAttributeProcessor
(Class<T> clzAttribute) Construct aSimpleAttributeProcessor
. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(ProcessingContext context, XmlAttribute attribute) Process anXmlAttribute
and return a specific type of value.
-
Constructor Details
-
SimpleAttributeProcessor
Construct aSimpleAttributeProcessor
.- Parameters:
clzAttribute
- theClass
of the attribute value to be returned
-
-
Method Details
-
process
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
-