|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.config.xml.AbstractMediatorSerializer
public abstract class AbstractMediatorSerializer
Parent class for all the MediatorSerializer
implementations
Field Summary | |
---|---|
protected static QName |
DESCRIPTION_Q
|
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. |
OMElement |
serializeMediator(OMElement parent,
Mediator m)
Serializes the given mediator into XML element. |
protected void |
serializeMediatorProperties(OMElement parent,
Collection<MediatorProperty> props)
|
protected void |
serializeMediatorProperties(OMElement parent,
Collection<MediatorProperty> props,
QName childElementName)
|
protected void |
serializeNamespaces(OMElement elem,
AXIOMXPath xpath)
|
protected void |
serializeProperties(OMElement parent,
Collection<MediatorProperty> props)
|
protected abstract OMElement |
serializeSpecificMediator(Mediator m)
Specific mediator factory implementations should implement this method to build the Mediator by the given XML configuration |
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 |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected static final OMFactory fac
protected static final OMNamespace synNS
protected static final OMNamespace nullNS
protected static final QName PROP_Q
protected static final QName DESCRIPTION_Q
Constructor Detail |
---|
protected AbstractMediatorSerializer()
Method Detail |
---|
public final OMElement serializeMediator(OMElement parent, Mediator m)
serializeSpecificMediator(org.apache.synapse.Mediator)
method, which has tobe
implemented by the respective mediators
It is treating the AnonymousListMediator
as a
special case and calls it's children serialization, since there is nothing specific to be
serialized in that case
This method has been marked as final
to avoid mistakenly overwriting
this method instead of the serializeSpecificMediator(org.apache.synapse.Mediator)
by the sub classes
serializeMediator
in interface MediatorSerializer
parent
- the OMElement to which the serialization should be attachedm
- mediator to be serialized
protected abstract OMElement serializeSpecificMediator(Mediator m)
Mediator
by the given XML configuration
m
- mediator to be serialized
protected static void saveTracingState(OMElement mediatorOmElement, Mediator mediator)
mediatorOmElement
- the OMElement being createdmediator
- the Mediator instance being serializedprotected void serializeMediatorProperties(OMElement parent, Collection<MediatorProperty> props, QName childElementName)
protected void serializeMediatorProperties(OMElement parent, Collection<MediatorProperty> props)
protected void serializeProperties(OMElement parent, Collection<MediatorProperty> props)
protected void serializeNamespaces(OMElement elem, AXIOMXPath xpath)
protected void handleException(String msg)
protected void handleException(String msg, Exception e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |