|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.config.xml.preprocessor.AbstractElementMergingPreprocessor
com.tangosol.coherence.config.xml.preprocessor.SchemeRefPreprocessor
public class SchemeRefPreprocessor
A SchemeRefPreprocessor
is an DocumentElementPreprocessor.ElementPreprocessor
that resolves declarations of <scheme-ref> as required by Coherence.
Field Summary | |
---|---|
static SchemeRefPreprocessor |
INSTANCE This singleton instance of the SchemeRefPreprocessor . |
static java.lang.String |
REFERENCED_SCHEME_ATTR The attribute that holds the name of a scheme that was referenced by other schemes. |
Fields inherited from class com.tangosol.coherence.config.xml.preprocessor.AbstractElementMergingPreprocessor |
---|
ORIGINATED_FROM_ATTR |
Constructor Summary | |
---|---|
SchemeRefPreprocessor() |
Method Summary | |
---|---|
XmlElement |
findCachingScheme(java.lang.String sSchemeName, XmlElement element) Obtains the XmlElement that contains a <scheme-name> definition for the specified sSchemeName with in the provided XmlElement , or null if not found. |
boolean |
preprocess(ProcessingContext context, XmlElement element) Process an XmlElement , optionally mutating it (or it's children) if required. |
Methods inherited from class com.tangosol.coherence.config.xml.preprocessor.AbstractElementMergingPreprocessor |
---|
addOriginatedFromAttribute, setMaintainOriginatedFromAttribute |
Field Detail |
---|
public static final SchemeRefPreprocessor INSTANCE
SchemeRefPreprocessor
.public static final java.lang.String REFERENCED_SCHEME_ATTR
Constructor Detail |
---|
public SchemeRefPreprocessor()
Method Detail |
---|
public boolean preprocess(ProcessingContext context, XmlElement element) throws ConfigurationException
XmlElement
, optionally mutating it (or it's children) if required.
Note: An implementation of this interface should avoid attempting to traverse child XmlElement
s. If you wish to manually traverse or change the entire document, you should instead use a DocumentPreprocessor
.
preprocess
in interface DocumentElementPreprocessor.ElementPreprocessor
context
- the ProcessingContext
in which the pre-processing is occuringelement
- the XmlElement
to preprocesstrue
if the specified XmlElement
should be re-preprocessed by this and other DocumentElementPreprocessor.ElementPreprocessor
s due to the XmlElement
being modified, false
otherwise.ConfigurationException
- if during pre-processing of the XmlElement
a configuration issue was discovered (or if pre-processing fails for some reason)public XmlElement findCachingScheme(java.lang.String sSchemeName, XmlElement element)
XmlElement
that contains a <scheme-name> definition for the specified sSchemeName with in the provided XmlElement
, or null
if not found.sSchemeName
- The scheme name to locateelement
- The XmlElement
to search
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |