Class SchemeRefPreprocessor
java.lang.Object
com.tangosol.coherence.config.xml.preprocessor.SchemeRefPreprocessor
- All Implemented Interfaces:
 DocumentElementPreprocessor.ElementPreprocessor
public class SchemeRefPreprocessor
extends Object
implements DocumentElementPreprocessor.ElementPreprocessor
A 
SchemeRefPreprocessor is an DocumentElementPreprocessor.ElementPreprocessor that resolves declarations of
 <scheme-ref> as required by Coherence.- Since:
 - Coherence 12.1.2
 - Author:
 - bo 2011.08.03
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SchemeRefPreprocessorThis singleton instance of theSchemeRefPreprocessor. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfindCachingScheme(String sSchemeName, XmlElement element) Obtains theXmlElementthat contains a <scheme-name> definition for the specified sSchemeName with in the providedXmlElement, ornullif not found.booleanpreprocess(ProcessingContext context, XmlElement element) Process anXmlElement, optionally mutating it (or it's children) if required. 
- 
Field Details
- 
INSTANCE
This singleton instance of theSchemeRefPreprocessor. 
 - 
 - 
Constructor Details
- 
SchemeRefPreprocessor
public SchemeRefPreprocessor() 
 - 
 - 
Method Details
- 
preprocess
public boolean preprocess(ProcessingContext context, XmlElement element) throws ConfigurationException Process anXmlElement, optionally mutating it (or it's children) if required.Note: An implementation of this interface should avoid attempting to traverse child
XmlElements. If you wish to manually traverse or change the entire document, you should instead use aDocumentPreprocessor.- Specified by:
 preprocessin interfaceDocumentElementPreprocessor.ElementPreprocessor- Parameters:
 context- theProcessingContextin which the pre-processing is occurringelement- theXmlElementto preprocess- Returns:
 trueif the specifiedXmlElementshould be re-preprocessed by this and otherDocumentElementPreprocessor.ElementPreprocessors due to theXmlElementbeing modified,falseotherwise.- Throws:
 ConfigurationException- if during pre-processing of theXmlElementa configuration issue was discovered (or if pre-processing fails for some reason)
 - 
findCachingScheme
Obtains theXmlElementthat contains a <scheme-name> definition for the specified sSchemeName with in the providedXmlElement, ornullif not found.- Parameters:
 sSchemeName- The scheme name to locateelement- TheXmlElementto search- Returns:
 - the caching scheme xml element
 
 
 -