public class MessageExpressionMethods
extends java.lang.Object
Message
. A StandardEvaluationContext
is expected and
MessagePartitionKeyMethodResolver
and MessagePartitionKeyPropertyAccessor
registered with it.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 register)
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 register)
StandardEvaluationContext
.evaluationContext
- the spel evaluation contextregister
- if method resolver and property accessor should be registeredpublic <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 expressiondesiredResultType
- the desired result typeorg.springframework.expression.EvaluationException
- the evaluation exception