Spring Integration

org.springframework.integration.transformer
Class ClaimCheckOutTransformer

java.lang.Object
  extended by org.springframework.integration.transformer.AbstractTransformer
      extended by org.springframework.integration.transformer.ClaimCheckOutTransformer
All Implemented Interfaces:
Transformer

public class ClaimCheckOutTransformer
extends AbstractTransformer

Transformer that accepts a Message whose payload is a UUID and retrieves the Message associated with that id from a MessageStore if available. An Exception will be thrown if no Message with that ID can be retrieved from the given MessageStore.

Since:
2.0
Author:
Mark Fisher

Constructor Summary
ClaimCheckOutTransformer(MessageStore messageStore)
          Create a claim check-out transformer that will delegate to the provided MessageStore.
 
Method Summary
protected  Object doTransform(Message<?> message)
          Subclasses must implement this method to provide the transformation logic.
 
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

ClaimCheckOutTransformer

public ClaimCheckOutTransformer(MessageStore messageStore)
Create a claim check-out transformer that will delegate to the provided MessageStore.

Method Detail

doTransform

protected Object doTransform(Message<?> message)
                      throws Exception
Description copied from class: AbstractTransformer
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.

Specified by:
doTransform in class AbstractTransformer
Throws:
Exception

Spring Integration

Copyright © 2010. All Rights Reserved.