Class MethodInvokingMessageGroupProcessor

java.lang.Object
org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessor
org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor
All Implemented Interfaces:
Aware, BeanFactoryAware, Lifecycle, MessageGroupProcessor, ManageableLifecycle

public class MethodInvokingMessageGroupProcessor extends AbstractAggregatingMessageGroupProcessor implements ManageableLifecycle
MessageGroupProcessor that serves as an adapter for the invocation of a POJO method.
Since:
2.0
Author:
Iwein Fuld, Mark Fisher, Dave Syer, Gary Russell, Artme Bilan
  • Constructor Details

    • MethodInvokingMessageGroupProcessor

      public MethodInvokingMessageGroupProcessor(Object target)
      Creates a wrapper around the object passed in. This constructor will look for a method that can process a list of messages.
      Parameters:
      target - the object to wrap
    • MethodInvokingMessageGroupProcessor

      public MethodInvokingMessageGroupProcessor(Object target, String methodName)
      Creates a wrapper around the object passed in. This constructor will look for a named method specifically and fail when it cannot find a method with the given name.
      Parameters:
      target - the object to wrap
      methodName - the name of the method to invoke
    • MethodInvokingMessageGroupProcessor

      public MethodInvokingMessageGroupProcessor(Object target, Method method)
      Creates a wrapper around the object passed in.
      Parameters:
      target - the object to wrap
      method - the method to invoke
  • Method Details