org.springframework.integration.handler
Class ExpressionEvaluatingMessageProcessor<T>
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.AbstractMessageProcessor<T>
org.springframework.integration.handler.ExpressionEvaluatingMessageProcessor<T>
- All Implemented Interfaces:
- BeanFactoryAware, MessageProcessor<T>
public class ExpressionEvaluatingMessageProcessor<T>
- extends AbstractMessageProcessor<T>
A MessageProcessor
implementation that evaluates a SpEL expression
with the Message itself as the root object within the evaluation context.
- Since:
- 2.0
- Author:
- Mark Fisher
Method Summary |
T |
processMessage(Message<?> message)
Processes the Message by evaluating the expression with that Message as the
root object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionEvaluatingMessageProcessor
public ExpressionEvaluatingMessageProcessor(String expression)
ExpressionEvaluatingMessageProcessor
public ExpressionEvaluatingMessageProcessor(String expression,
Class<T> expectedType)
- Create an
ExpressionEvaluatingMessageProcessor
for the given expression String.
processMessage
public T processMessage(Message<?> message)
- Processes the Message by evaluating the expression with that Message as the
root object. The expression evaluation result Object will be returned.
- Specified by:
processMessage
in interface MessageProcessor<T>
- Specified by:
processMessage
in class AbstractMessageProcessor<T>
Copyright © 2010. All Rights Reserved.