Spring Integration

org.springframework.integration.transformer
Class ObjectToStringTransformer

java.lang.Object
  extended by org.springframework.integration.transformer.AbstractTransformer
      extended by org.springframework.integration.transformer.AbstractPayloadTransformer<Object,String>
          extended by org.springframework.integration.transformer.ObjectToStringTransformer
All Implemented Interfaces:
Transformer

public class ObjectToStringTransformer
extends AbstractPayloadTransformer<Object,String>

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

Since:
1.0.1
Author:
Mark Fisher

Constructor Summary
ObjectToStringTransformer()
           
 
Method Summary
protected  String transformPayload(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectToStringTransformer

public ObjectToStringTransformer()
Method Detail

transformPayload

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

Spring Integration

Copyright © 2010. All Rights Reserved.