Class ExtendPreprocessor
- java.lang.Object
-
- com.tangosol.coherence.config.xml.preprocessor.ExtendPreprocessor
-
- All Implemented Interfaces:
DocumentElementPreprocessor.ElementPreprocessor
public class ExtendPreprocessor extends Object implements DocumentElementPreprocessor.ElementPreprocessor
AnExtendPreprocessoris anDocumentElementPreprocessor.ElementPreprocessorthat will inject an "acceptor-config"XmlElementinto a "proxy-scheme"XmlElementif one does not exist.- Since:
- Coherence 12.1.3
- Author:
- lh 2013.07.09
-
-
Field Summary
Fields Modifier and Type Field Description static ExtendPreprocessorINSTANCEThis singleton instance of theExtendPreprocessor.
-
Constructor Summary
Constructors Constructor Description ExtendPreprocessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpreprocess(ProcessingContext context, XmlElement element)Process anXmlElement, optionally mutating it (or it's children) if required.
-
-
-
Field Detail
-
INSTANCE
public static final ExtendPreprocessor INSTANCE
This singleton instance of theExtendPreprocessor.
-
-
Method Detail
-
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)
-
-