public class MessageExpressionMethods extends Object
Message. A StandardEvaluationContext is expected and
MessagePartitionKeyMethodResolver and MessagePartitionKeyPropertyAccessor
registered with it.| Modifier and Type | Class and Description |
|---|---|
static class |
MessageExpressionMethods.MessageWrappedMessage |
| Constructor and Description |
|---|
MessageExpressionMethods(StandardEvaluationContext evaluationContext)
Instantiates a new message expression methods with
a
StandardEvaluationContext. |
MessageExpressionMethods(StandardEvaluationContext evaluationContext,
boolean autoCustomize,
boolean replaceMethodResolver)
Instantiates a new message expression methods with
a
StandardEvaluationContext. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getValue(Expression expression,
Message<?> message,
Class<T> desiredResultType)
Gets the value.
|
public MessageExpressionMethods(StandardEvaluationContext evaluationContext)
StandardEvaluationContext.evaluationContext - the spel evaluation contextpublic MessageExpressionMethods(StandardEvaluationContext evaluationContext, boolean autoCustomize, boolean replaceMethodResolver)
StandardEvaluationContext.evaluationContext - the spel evaluation contextautoCustomize - auto customize method resolver and property accessorreplaceMethodResolver - replace context method resolverpublic <T> T getValue(Expression expression, Message<?> message, Class<T> desiredResultType) throws EvaluationException
T - the generic typeexpression - the expressionmessage - the messagedesiredResultType - the desired result typeEvaluationException - the evaluation exception