Class DefaultsCreationPreprocessor
- java.lang.Object
-
- com.tangosol.coherence.config.xml.preprocessor.DefaultsCreationPreprocessor
-
- All Implemented Interfaces:
DocumentElementPreprocessor.ElementPreprocessor
public class DefaultsCreationPreprocessor extends Object implements DocumentElementPreprocessor.ElementPreprocessor
ADefaultsCreationPreprocessoris anDocumentElementPreprocessor.ElementPreprocessorthat creates necessary defaults, like for <serializer>s, if they are missing from the <defaults> element.- Since:
- Coherence 12.2.1
- Author:
- bo 2014.03.21
-
-
Constructor Summary
Constructors Constructor Description DefaultsCreationPreprocessor()Constructs aDefaultsCreationPreprocessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpreprocess(ProcessingContext context, XmlElement xmlConfig)Process anXmlElement, optionally mutating it (or it's children) if required.
-
-
-
Constructor Detail
-
DefaultsCreationPreprocessor
public DefaultsCreationPreprocessor()
Constructs aDefaultsCreationPreprocessor.
-
-
Method Detail
-
preprocess
public boolean preprocess(ProcessingContext context, XmlElement xmlConfig) throws ConfigurationException
Description copied from interface:DocumentElementPreprocessor.ElementPreprocessorProcess 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 occurringxmlConfig- 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)
-
-