org.springframework.integration.transformer
Class AbstractTransformer
java.lang.Object
org.springframework.integration.transformer.AbstractTransformer
- All Implemented Interfaces:
- Transformer
- Direct Known Subclasses:
- AbstractPayloadTransformer, ClaimCheckInTransformer, ClaimCheckOutTransformer, MarshallingTransformer, XPathTransformer, XsltPayloadTransformer
public abstract class AbstractTransformer
- extends Object
- implements Transformer
A base class for Transformer
implementations.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTransformer
public AbstractTransformer()
transform
public final Message<?> transform(Message<?> message)
- Specified by:
transform
in interface Transformer
doTransform
protected abstract Object doTransform(Message<?> message)
throws Exception
- Subclasses must implement this method to provide the transformation
logic. If the return value is itself a Message, it will be used as the
result. Otherwise, any non-null return value will be used as the payload
of the result Message.
- Throws:
Exception
Copyright © 2010. All Rights Reserved.