org.springframework.integration.transformer
Class ObjectToStringTransformer
java.lang.Object
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<Object,String>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectToStringTransformer
public ObjectToStringTransformer()
transformPayload
protected String transformPayload(Object payload)
throws Exception
- Specified by:
transformPayload
in class AbstractPayloadTransformer<Object,String>
- Throws:
Exception
Copyright © 2010. All Rights Reserved.