Spring Integration

org.springframework.integration.transformer
Class MethodInvokingTransformer

java.lang.Object
  extended by org.springframework.integration.transformer.AbstractMessageProcessingTransformer
      extended by org.springframework.integration.transformer.MethodInvokingTransformer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, Transformer

public class MethodInvokingTransformer
extends AbstractMessageProcessingTransformer

A Message Transformer implementation that invokes the specified method on the given object. The method's return value will be considered as the payload of a new Message unless the return value is itself already a Message.

Author:
Mark Fisher

Constructor Summary
MethodInvokingTransformer(java.lang.Object object)
           
MethodInvokingTransformer(java.lang.Object object, java.lang.reflect.Method method)
           
MethodInvokingTransformer(java.lang.Object object, java.lang.String methodName)
           
 
Method Summary
 
Methods inherited from class org.springframework.integration.transformer.AbstractMessageProcessingTransformer
setBeanFactory, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokingTransformer

public MethodInvokingTransformer(java.lang.Object object,
                                 java.lang.reflect.Method method)

MethodInvokingTransformer

public MethodInvokingTransformer(java.lang.Object object,
                                 java.lang.String methodName)

MethodInvokingTransformer

public MethodInvokingTransformer(java.lang.Object object)

Spring Integration