Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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

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

All Implemented Interfaces:
DocumentElementPreprocessor.ElementPreprocessor

public class PofSerializerPreprocessor
extends java.lang.Object
implements DocumentElementPreprocessor.ElementPreprocessor

A PofSerializerPreprocessor is an DocumentElementPreprocessor.ElementPreprocessor that replaces any occurrence of <serializer>pof</serializer> with a ConfigurablePofContext configuration, passing in the provided POF configuration URI in the initialization parameters.

Since:
Coherence 12.1.2
Author:
pfm 2012.01.20

Constructor Summary
PofSerializerPreprocessor()
          Constructs a PofSerializerPreprocessor.

 

Method Summary
 boolean preprocess(ProcessingContext context, XmlElement element)
          Process an XmlElement, optionally mutating it (or it's children) if required.
protected  void preprocess(XmlElement element, java.lang.String sPofConfigUri)
          Recursively replace the <serializer>pof</serializer> element with a serializer element containing the PofConfigUri.

 

Constructor Detail

PofSerializerPreprocessor

public PofSerializerPreprocessor()
Constructs a PofSerializerPreprocessor.

Method Detail

preprocess

public boolean preprocess(ProcessingContext context,
                          XmlElement element)
                   throws ConfigurationException
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)

preprocess

protected void preprocess(XmlElement element,
                          java.lang.String sPofConfigUri)
Recursively replace the <serializer>pof</serializer> element with a serializer element containing the PofConfigUri.
Parameters:
element - the parent XML element
sPofConfigUri - the POF serialize URI

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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