GigaSpaces XAP 7.0 API

org.openspaces.esb.mule.transformers
Class OpenSpacesTransformer

java.lang.Object
  extended by org.mule.transformer.AbstractTransformer
      extended by org.mule.transformer.AbstractMessageAwareTransformer
          extended by org.openspaces.esb.mule.transformers.OpenSpacesTransformer
All Implemented Interfaces:
org.mule.api.lifecycle.Initialisable, org.mule.api.NamedObject, org.mule.api.transformer.BaseTransformer, org.mule.api.transformer.Transformer

public class OpenSpacesTransformer
extends org.mule.transformer.AbstractMessageAwareTransformer

This class copies the metadata from UMOMessage to the transformed object. it assumes that the return object is the payload that contained in the UMOMessage. Note: In case that the return object isn't the payload that contained in the UMOMessage you should override the getResultPayload(org.mule.api.MuleMessage, String) method and return the new transformered object.

Author:
yitzhaki

Field Summary
 
Fields inherited from class org.mule.transformer.AbstractTransformer
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
OpenSpacesTransformer()
           
 
Method Summary
protected  void copyMetaData(org.mule.api.MuleMessage message, Object result)
          Copies the metadata from the UMOMessage to the result object.
protected  Object getResultPayload(org.mule.api.MuleMessage message, String outputEncoding)
          Returns the origin UMOMessage payload.
 Object transform(org.mule.api.MuleMessage message, String outputEncoding)
           
 
Methods inherited from class org.mule.transformer.AbstractMessageAwareTransformer
doTransform, isSourceTypeSupported
 
Methods inherited from class org.mule.transformer.AbstractTransformer
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenSpacesTransformer

public OpenSpacesTransformer()
Method Detail

transform

public Object transform(org.mule.api.MuleMessage message,
                        String outputEncoding)
                 throws org.mule.api.transformer.TransformerException
Specified by:
transform in class org.mule.transformer.AbstractMessageAwareTransformer
Throws:
org.mule.api.transformer.TransformerException

getResultPayload

protected Object getResultPayload(org.mule.api.MuleMessage message,
                                  String outputEncoding)
Returns the origin UMOMessage payload.


copyMetaData

protected void copyMetaData(org.mule.api.MuleMessage message,
                            Object result)
Copies the metadata from the UMOMessage to the result object.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.