org.springframework.integration.handler
Class MethodInvokingMessageProcessor<T>
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.AbstractMessageProcessor<T>
org.springframework.integration.handler.MethodInvokingMessageProcessor<T>
- All Implemented Interfaces:
- BeanFactoryAware, MessageProcessor<T>
- Direct Known Subclasses:
- MethodInvokingMessageHandler
public class MethodInvokingMessageProcessor<T>
- extends AbstractMessageProcessor<T>
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.
- Since:
- 2.0
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInvokingMessageProcessor
public MethodInvokingMessageProcessor(Object targetObject,
Method method)
MethodInvokingMessageProcessor
public MethodInvokingMessageProcessor(Object targetObject,
String methodName)
MethodInvokingMessageProcessor
public MethodInvokingMessageProcessor(Object targetObject,
String methodName,
boolean requiresReply)
MethodInvokingMessageProcessor
public MethodInvokingMessageProcessor(Object targetObject,
Class<? extends Annotation> annotationType)
setConversionService
public void setConversionService(ConversionService conversionService)
- Overrides:
setConversionService
in class AbstractExpressionEvaluator
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
- Description copied from class:
AbstractExpressionEvaluator
- Specify a BeanFactory in order to enable resolution via
@beanName
in the expression.
- Specified by:
setBeanFactory
in interface BeanFactoryAware
- Overrides:
setBeanFactory
in class AbstractExpressionEvaluator
processMessage
public T processMessage(Message<?> message)
- Description copied from interface:
MessageProcessor
- Process the Message and return a value (or null).
- Specified by:
processMessage
in interface MessageProcessor<T>
- Specified by:
processMessage
in class AbstractMessageProcessor<T>
Copyright © 2010. All Rights Reserved.