Class TransactionalPreprocessor
java.lang.Object
com.tangosol.coherence.config.xml.preprocessor.TransactionalPreprocessor
- All Implemented Interfaces:
DocumentElementPreprocessor.ElementPreprocessor
public class TransactionalPreprocessor
extends Object
implements DocumentElementPreprocessor.ElementPreprocessor
A
TransactionalPreprocessor
is an DocumentElementPreprocessor.ElementPreprocessor
that
introduces (via cloning) internal cache-config xml content for xml elements.
Ultimately this DocumentElementPreprocessor.ElementPreprocessor
is designed to perform pre-processing of
Coherence Cache <cache-config> declarations by merging the
internal-txn-cache-config.xml elements if a transactional-scheme is specified.
- Since:
- Coherence 12.1.2
- Author:
- der 2012.1.17
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
preprocess
(ProcessingContext context, XmlElement element) Process anXmlElement
, optionally mutating it (or it's children) if required.
-
Constructor Details
-
TransactionalPreprocessor
public TransactionalPreprocessor()
-
-
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
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 occurringelement
- 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)
-