Class InstanceProcessor
- java.lang.Object
-
- com.tangosol.coherence.config.xml.processor.InstanceProcessor
-
- All Implemented Interfaces:
ElementProcessor<ParameterizedBuilder<Object>>
@XmlSimpleName("instance") public class InstanceProcessor extends Object implements ElementProcessor<ParameterizedBuilder<Object>>
AnInstanceProcessor
is responsible for processing <instance>XmlElement
s to produceParameterizedBuilder
s.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.09.28
-
-
Constructor Summary
Constructors Constructor Description InstanceProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isForeignNamespace(XmlElement element)
Return true if the given element meets the following criteria: there is a single sub element the namespace of the sub element is not in the Coherence namespaceParameterizedBuilder<Object>
process(ProcessingContext context, XmlElement element)
Process anXmlElement
to return a specific type of value.
-
-
-
Method Detail
-
process
public ParameterizedBuilder<Object> process(ProcessingContext context, XmlElement element) throws ConfigurationException
Process anXmlElement
to return a specific type of value.- Specified by:
process
in interfaceElementProcessor<ParameterizedBuilder<Object>>
- 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
-
isForeignNamespace
protected boolean isForeignNamespace(XmlElement element)
Return true if the given element meets the following criteria:- there is a single sub element
- the namespace of the sub element is not in the Coherence namespace
- Parameters:
element
- the <instance> element to inspect- Returns:
- true if the given element is in a foreign namespace
-
-