public class MessageExpressionMethods
extends java.lang.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(org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
Instantiates a new message expression methods with
a
StandardEvaluationContext. |
MessageExpressionMethods(org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext,
boolean autoCustomize,
boolean replaceMethodResolver)
Instantiates a new message expression methods with
a
StandardEvaluationContext. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getValue(org.springframework.expression.Expression expression,
org.springframework.messaging.Message<?> message,
java.lang.Class<T> desiredResultType)
Gets the value.
|
public MessageExpressionMethods(org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
StandardEvaluationContext.evaluationContext - the spel evaluation contextpublic MessageExpressionMethods(org.springframework.expression.spel.support.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(org.springframework.expression.Expression expression,
org.springframework.messaging.Message<?> message,
java.lang.Class<T> desiredResultType)
throws org.springframework.expression.EvaluationException
T - the generic typeexpression - the expressionmessage - the messagedesiredResultType - the desired result typeorg.springframework.expression.EvaluationException - the evaluation exception