Spring Integration

org.springframework.integration.transformer
Class AbstractTransformer

java.lang.Object
  extended by 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

Constructor Summary
AbstractTransformer()
           
 
Method Summary
protected abstract  Object doTransform(Message<?> message)
          Subclasses must implement this method to provide the transformation logic.
 Message<?> transform(Message<?> message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTransformer

public AbstractTransformer()
Method Detail

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

Spring Integration

Copyright © 2010. All Rights Reserved.