Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config.xml.processor
Class InstanceProcessor

java.lang.Object
  extended by com.tangosol.coherence.config.xml.processor.InstanceProcessor

All Implemented Interfaces:
ElementProcessor

@XmlSimpleName(value="instance")
public class InstanceProcessor
extends java.lang.Object
implements ElementProcessor

An InstanceProcessor is responsible for processing <instance> XmlElements to produce ParameterizedBuilders.

Since:
Coherence 12.1.2
Author:
bo 2011.09.28

Constructor Summary
InstanceProcessor()
           

 

Method Summary
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
 ParameterizedBuilder process(ProcessingContext context, XmlElement element)
          Process an XmlElement to return a specific type of value.

 

Constructor Detail

InstanceProcessor

public InstanceProcessor()

Method Detail

process

public ParameterizedBuilder process(ProcessingContext context,
                                    XmlElement element)
                             throws ConfigurationException
Process an XmlElement to return a specific type of value.
Specified by:
process in interface ElementProcessor
Parameters:
context - the ProcessingContext in which the XmlElement is being processed
element - the XmlElement 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:
  1. there is a single sub element
  2. 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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.