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(Expression expression)
Create an
ExpressionEvaluatingMessageProcessor for the given expression. |
ExpressionEvaluatingMessageProcessor(Expression expression,
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, getMessageBuilderFactory, setBeanFactory, setConversionService
public ExpressionEvaluatingMessageProcessor(Expression expression)
ExpressionEvaluatingMessageProcessor
for the given expression.expression
- The expression.public ExpressionEvaluatingMessageProcessor(Expression expression, Class<T> expectedType)
ExpressionEvaluatingMessageProcessor
for the given expression
and expected type for its evaluation result.expression
- The expression.expectedType
- The expected type.public T processMessage(Message<?> message)
processMessage
in interface MessageProcessor<T>
processMessage
in class AbstractMessageProcessor<T>
message
- The message.