public class ExpressionEvaluatingMessageProcessor<T> extends AbstractMessageProcessor<T>
MessageProcessor
implementation that evaluates a SpEL expression
with the Message itself as the root object within the evaluation context.Constructor and Description |
---|
ExpressionEvaluatingMessageProcessor(org.springframework.expression.Expression expression)
Create an
ExpressionEvaluatingMessageProcessor for the given expression. |
ExpressionEvaluatingMessageProcessor(org.springframework.expression.Expression expression,
java.lang.Class<T> expectedType)
Create an
ExpressionEvaluatingMessageProcessor for the given expression
and expected type for its evaluation result. |
Modifier and Type | Method and Description |
---|---|
T |
processMessage(Message<?> message)
Processes the Message by evaluating the expression with that Message as the
root object.
|
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, setBeanFactory, setConversionService
public ExpressionEvaluatingMessageProcessor(org.springframework.expression.Expression expression)
ExpressionEvaluatingMessageProcessor
for the given expression.public ExpressionEvaluatingMessageProcessor(org.springframework.expression.Expression expression, java.lang.Class<T> expectedType)
ExpressionEvaluatingMessageProcessor
for the given expression
and expected type for its evaluation result.public T processMessage(Message<?> message)
processMessage
in interface MessageProcessor<T>
processMessage
in class AbstractMessageProcessor<T>