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
ConstructorsConstructorDescriptionSimpleAttributeProcessor(Class<T> clzAttribute) Construct aSimpleAttributeProcessor. -
Method Summary
Modifier and TypeMethodDescriptionprocess(ProcessingContext context, XmlAttribute attribute) Process anXmlAttributeand return a specific type of value.
-
Constructor Details
-
SimpleAttributeProcessor
Construct aSimpleAttributeProcessor.- Parameters:
clzAttribute- theClassof the attribute value to be returned
-
-
Method Details
-
process
Process anXmlAttributeand return a specific type of value.- Specified by:
processin interfaceAttributeProcessor<T>- Parameters:
context- theProcessingContextin which theXmlAttributeis being processedattribute- theXmlAttributeto be processed- Returns:
- a value of type T
- Throws:
ConfigurationException- when a configuration problem was encountered
-