org.springframework.integration.transformer
Class ObjectToStringTransformer

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.transformer.AbstractTransformer
          extended by org.springframework.integration.transformer.AbstractPayloadTransformer<java.lang.Object,java.lang.String>
              extended by org.springframework.integration.transformer.ObjectToStringTransformer
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, NamedComponent, Transformer

public class ObjectToStringTransformer
extends AbstractPayloadTransformer<java.lang.Object,java.lang.String>

A simple transformer that creates an outbound payload by invoking the inbound payload Object's toString() method.

Since:
1.0.1

Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
ObjectToStringTransformer()
           
 
Method Summary
protected  java.lang.String transformPayload(java.lang.Object payload)
           
 
Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer
doTransform
 
Methods inherited from class org.springframework.integration.transformer.AbstractTransformer
transform
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectToStringTransformer

public ObjectToStringTransformer()
Method Detail

transformPayload

protected java.lang.String transformPayload(java.lang.Object payload)
                                     throws java.lang.Exception
Specified by:
transformPayload in class AbstractPayloadTransformer<java.lang.Object,java.lang.String>
Throws:
java.lang.Exception