org.apache.synapse.config.xml
Class AbstractMediatorSerializer

java.lang.Object
  extended by org.apache.synapse.config.xml.AbstractMediatorSerializer
All Implemented Interfaces:
MediatorSerializer
Direct Known Subclasses:
AbstractDBMediatorSerializer, AbstractListMediatorSerializer, AggregateMediatorSerializer, CacheMediatorSerializer, CalloutMediatorSerializer, ClassMediatorSerializer, CloneMediatorSerializer, DropMediatorSerializer, FaultMediatorSerializer, HeaderMediatorSerializer, IterateMediatorSerializer, LogMediatorSerializer, POJOCommandMediatorSerializer, PropertyMediatorSerializer, RMSequenceMediatorSerializer, ScriptMediatorSerializer, SendMediatorSerializer, SpringMediatorSerializer, SwitchMediatorSerializer, ThrottleMediatorSerializer, XQueryMediatorSerializer, XSLTMediatorSerializer

public abstract class AbstractMediatorSerializer
extends Object
implements MediatorSerializer


Field Summary
protected static OMFactory fac
           
protected static org.apache.commons.logging.Log log
          the standard log for mediators, will assign the logger for the actual subclass
protected static OMNamespace nullNS
           
protected static QName PROP_Q
           
protected static OMNamespace synNS
           
 
Constructor Summary
protected AbstractMediatorSerializer()
          A constructor that makes subclasses pick up the correct logger
 
Method Summary
protected  void handleException(String msg)
           
protected  void handleException(String msg, Exception e)
           
protected static void saveTracingState(OMElement mediatorOmElement, Mediator mediator)
          Perform common functions and finalize the mediator serialization.
protected  void serializeMediatorProperties(OMElement parent, Collection props)
           
protected  void serializeNamespaces(OMElement elem, AXIOMXPath xpath)
           
protected  void serializeProperties(OMElement parent, Collection props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.synapse.config.xml.MediatorSerializer
getMediatorClassName, serializeMediator
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the standard log for mediators, will assign the logger for the actual subclass


fac

protected static final OMFactory fac

synNS

protected static final OMNamespace synNS

nullNS

protected static final OMNamespace nullNS

PROP_Q

protected static final QName PROP_Q
Constructor Detail

AbstractMediatorSerializer

protected AbstractMediatorSerializer()
A constructor that makes subclasses pick up the correct logger

Method Detail

saveTracingState

protected static void saveTracingState(OMElement mediatorOmElement,
                                       Mediator mediator)
Perform common functions and finalize the mediator serialization. i.e. process any common attributes

Parameters:
mediatorOmElement - the OMElement being created
mediator - the Mediator instance being serialized

serializeMediatorProperties

protected void serializeMediatorProperties(OMElement parent,
                                           Collection props)

serializeProperties

protected void serializeProperties(OMElement parent,
                                   Collection props)

serializeNamespaces

protected void serializeNamespaces(OMElement elem,
                                   AXIOMXPath xpath)

handleException

protected void handleException(String msg)

handleException

protected void handleException(String msg,
                               Exception e)


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.