public class ExpressionEvaluatingMessageListProcessor extends AbstractExpressionEvaluator implements MessageListProcessor
EXPRESSION_PARSER, logger| Constructor and Description |
|---|
ExpressionEvaluatingMessageListProcessor(Expression expression)
Construct
ExpressionEvaluatingMessageListProcessor for the provided expression. |
ExpressionEvaluatingMessageListProcessor(Expression expression,
Class<?> expectedType)
Construct
ExpressionEvaluatingMessageListProcessor for the provided
expression and expected result type. |
ExpressionEvaluatingMessageListProcessor(String expression)
Construct
ExpressionEvaluatingMessageListProcessor for the provided
SpEL expression and expected result type. |
ExpressionEvaluatingMessageListProcessor(String expression,
Class<?> expectedType)
Construct
ExpressionEvaluatingMessageListProcessor for the provided
SpEL expression and expected result type. |
| Modifier and Type | Method and Description |
|---|---|
Object |
process(Collection<? extends Message<?>> messages)
Processes the Message by evaluating the expression with that Message as the root object.
|
void |
setExpectedType(Class<?> expectedType)
Set the result type expected from evaluation of the expression.
|
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionServicepublic ExpressionEvaluatingMessageListProcessor(String expression, Class<?> expectedType)
ExpressionEvaluatingMessageListProcessor for the provided
SpEL expression and expected result type.expression - a SpEL expression to evaluate in process(Collection).expectedType - an expected result type.public ExpressionEvaluatingMessageListProcessor(String expression)
ExpressionEvaluatingMessageListProcessor for the provided
SpEL expression and expected result type.expression - a SpEL expression to evaluate in process(Collection).public ExpressionEvaluatingMessageListProcessor(Expression expression, Class<?> expectedType)
ExpressionEvaluatingMessageListProcessor for the provided
expression and expected result type.expression - an expression to evaluate in process(Collection).expectedType - an expected result type.public ExpressionEvaluatingMessageListProcessor(Expression expression)
ExpressionEvaluatingMessageListProcessor for the provided expression.expression - an expression to evaluate in process(Collection).public void setExpectedType(Class<?> expectedType)
expectedType - The expected type.public Object process(Collection<? extends Message<?>> messages)
process in interface MessageListProcessor