public class TransactionalPreprocessor extends Object implements DocumentElementPreprocessor.ElementPreprocessor
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.
OperationalDefaultsPreprocessor| Constructor and Description |
|---|
TransactionalPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
preprocess(ProcessingContext context,
XmlElement element)
Process an
XmlElement, optionally mutating it (or it's children) if required. |
public boolean preprocess(ProcessingContext context, XmlElement element) throws ConfigurationException
XmlElement, 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
a DocumentPreprocessor.
preprocess in interface DocumentElementPreprocessor.ElementPreprocessorcontext - the ProcessingContext in which the pre-processing is occurringelement - the XmlElement to preprocesstrue if the specified XmlElement should be
re-preprocessed by this and other DocumentElementPreprocessor.ElementPreprocessors
due to the XmlElement being modified, false
otherwise.ConfigurationException - if during pre-processing of the XmlElement a configuration
issue was discovered (or if pre-processing fails for some reason)