public class MethodInvokingMessageProcessor<T> extends AbstractMessageProcessor<T>
Constructor and Description |
---|
MethodInvokingMessageProcessor(Object targetObject,
Class<? extends Annotation> annotationType) |
MethodInvokingMessageProcessor(Object targetObject,
Method method) |
MethodInvokingMessageProcessor(Object targetObject,
String methodName) |
MethodInvokingMessageProcessor(Object targetObject,
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(BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via
@beanName in the expression. |
void |
setConversionService(ConversionService conversionService) |
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory
public MethodInvokingMessageProcessor(Object targetObject, Method method)
public MethodInvokingMessageProcessor(Object targetObject, String methodName)
public MethodInvokingMessageProcessor(Object targetObject, String methodName, boolean canProcessMessageList)
public MethodInvokingMessageProcessor(Object targetObject, Class<? extends Annotation> annotationType)
public void setConversionService(ConversionService conversionService)
setConversionService
in class AbstractExpressionEvaluator
public void setBeanFactory(BeanFactory beanFactory)
AbstractExpressionEvaluator
@beanName
in the expression.setBeanFactory
in interface BeanFactoryAware
setBeanFactory
in class AbstractExpressionEvaluator
public T processMessage(Message<?> message)
MessageProcessor
processMessage
in interface MessageProcessor<T>
processMessage
in class AbstractMessageProcessor<T>
message
- The message to process.