Class MethodInvokingTransformer

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, Lifecycle, ComponentSourceAware, ExpressionCapable, GenericTransformer<Message<?>, Message<?>>, NamedComponent, ManageableLifecycle, 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, Artem Bilan
  • Constructor Details

    • MethodInvokingTransformer

      public MethodInvokingTransformer(Object object, Method method)
    • MethodInvokingTransformer

      public MethodInvokingTransformer(Object object, String methodName)
    • MethodInvokingTransformer

      public MethodInvokingTransformer(Object object)
  • Method Details

    • getComponentType

      public String getComponentType()