public class MethodInvokingMessageProcessor<T> extends AbstractMessageProcessor<T>
Constructor and Description |
---|
MethodInvokingMessageProcessor(java.lang.Object targetObject,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
MethodInvokingMessageProcessor(java.lang.Object targetObject,
java.lang.reflect.Method method) |
MethodInvokingMessageProcessor(java.lang.Object targetObject,
java.lang.String methodName) |
MethodInvokingMessageProcessor(java.lang.Object targetObject,
java.lang.String methodName,
boolean canProcessMessageList) |
Modifier and Type | Method and Description |
---|---|
T |
processMessage(Message<?> message)
Process the Message and return a value (or null).
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via
@beanName in the expression. |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext
public MethodInvokingMessageProcessor(java.lang.Object targetObject, java.lang.reflect.Method method)
public MethodInvokingMessageProcessor(java.lang.Object targetObject, java.lang.String methodName)
public MethodInvokingMessageProcessor(java.lang.Object targetObject, java.lang.String methodName, boolean canProcessMessageList)
public MethodInvokingMessageProcessor(java.lang.Object targetObject, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
setConversionService
in class AbstractExpressionEvaluator
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
AbstractExpressionEvaluator
@beanName
in the expression.setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
in class AbstractExpressionEvaluator
public T processMessage(Message<?> message)
MessageProcessor
processMessage
in interface MessageProcessor<T>
processMessage
in class AbstractMessageProcessor<T>