Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config.xml.preprocessor
Class DefaultsCreationPreprocessor

java.lang.Object
  extended by com.tangosol.coherence.config.xml.preprocessor.DefaultsCreationPreprocessor

All Implemented Interfaces:
DocumentElementPreprocessor.ElementPreprocessor

public class DefaultsCreationPreprocessor
extends java.lang.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.1.4
Author:
bo 2014.03.21

Constructor Summary
DefaultsCreationPreprocessor()
          Constructs a DefaultsCreationPreprocessor.

 

Method Summary
 boolean preprocess(ProcessingContext context, XmlElement element)
          Process an XmlElement, optionally mutating it (or it's children) if required.

 

Constructor Detail

DefaultsCreationPreprocessor

public DefaultsCreationPreprocessor()
Constructs a DefaultsCreationPreprocessor.

Method Detail

preprocess

public boolean preprocess(ProcessingContext context,
                          XmlElement element)
                   throws ConfigurationException
Description copied from interface: DocumentElementPreprocessor.ElementPreprocessor
Process an 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.

Specified by:
preprocess in interface DocumentElementPreprocessor.ElementPreprocessor
Parameters:
context - the ProcessingContext in which the pre-processing is occuring
element - the XmlElement to preprocess
Returns:
true if the specified XmlElement should be re-preprocessed by this and other DocumentElementPreprocessor.ElementPreprocessors due to the XmlElement being modified, false otherwise.
Throws:
ConfigurationException - if during pre-processing of the XmlElement a configuration issue was discovered (or if pre-processing fails for some reason)

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.