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>>
An
InstanceProcessor is responsible for processing <instance> XmlElements
to produce ParameterizedBuilders.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.09.28
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 namespaceprocess(ProcessingContext context, XmlElement element) Process anXmlElementto return a specific type of value.
-
Constructor Details
-
InstanceProcessor
public InstanceProcessor()
-
-
Method Details
-
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
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
-