Class MethodInvokingMessageProcessor<T>

Type Parameters:
T - the expected payload type.
All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, Lifecycle, MessageProcessor<T>, ManageableLifecycle

public class MethodInvokingMessageProcessor<T> extends AbstractMessageProcessor<T> implements ManageableLifecycle
A MessageProcessor implementation that invokes a method on a target Object. The Method instance or method name may be provided as a constructor argument. If a method name is provided, and more than one declared method has that name, the method-selection will be dynamic, based on the underlying SpEL method resolution. Alternatively, an annotation type may be provided so that the candidates for SpEL's method resolution are determined by the presence of that annotation rather than the method name.
Dave Syer, Artem Bilan, Gary Russell