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> XmlElement
s
to produce ParameterizedBuilder
s.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.09.28
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 namespaceprocess
(ProcessingContext context, XmlElement element) Process anXmlElement
to 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 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
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
-