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>>
AnInstanceProcessoris responsible for processing <instance>XmlElements to produceParameterizedBuilders.- 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 booleanisForeignNamespace(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 anXmlElementto return a specific type of value.
-
-
-
Method Detail
-
process
public ParameterizedBuilder<Object> process(ProcessingContext context, XmlElement element) throws ConfigurationException
Process anXmlElementto return a specific type of value.- Specified by:
processin interfaceElementProcessor<ParameterizedBuilder<Object>>- Parameters:
context- theProcessingContextin which theXmlElementis being processedelement- theXmlElementto 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
-
-