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
A
DefaultsCreationPreprocessor
is an DocumentElementPreprocessor.ElementPreprocessor
that
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
preprocess
(ProcessingContext context, XmlElement xmlConfig) Process anXmlElement
, optionally mutating it (or it's children) if required.
-
Constructor Details
-
DefaultsCreationPreprocessor
public DefaultsCreationPreprocessor()Constructs aDefaultsCreationPreprocessor
.
-
-
Method Details
-
preprocess
public boolean preprocess(ProcessingContext context, XmlElement xmlConfig) throws ConfigurationException Description copied from interface:DocumentElementPreprocessor.ElementPreprocessor
Process anXmlElement
, 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 aDocumentPreprocessor
.- Specified by:
preprocess
in interfaceDocumentElementPreprocessor.ElementPreprocessor
- Parameters:
context
- theProcessingContext
in which the pre-processing is occurringxmlConfig
- theXmlElement
to preprocess- Returns:
true
if the specifiedXmlElement
should be re-preprocessed by this and otherDocumentElementPreprocessor.ElementPreprocessor
s due to theXmlElement
being modified,false
otherwise.- Throws:
ConfigurationException
- if during pre-processing of theXmlElement
a configuration issue was discovered (or if pre-processing fails for some reason)
-