public class MapExpressionMethods
extends java.lang.Object
Map
.Constructor and Description |
---|
MapExpressionMethods()
Instantiates a new map expression methods.
|
MapExpressionMethods(org.springframework.expression.EvaluationContext evaluationContext)
Instantiates a new map expression methods with
a
EvaluationContext which is expected to be
a StandardEvaluationContext . |
MapExpressionMethods(org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext,
boolean autoCustomize,
boolean replaceMethodResolver) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getValue(org.springframework.expression.Expression expression,
java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.Class<T> desiredResultType)
Gets the value.
|
public MapExpressionMethods()
public MapExpressionMethods(org.springframework.expression.EvaluationContext evaluationContext)
EvaluationContext
which is expected to be
a StandardEvaluationContext
.evaluationContext
- the passed evaluation contextpublic MapExpressionMethods(org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext, boolean autoCustomize, boolean replaceMethodResolver)
public <T> T getValue(org.springframework.expression.Expression expression, java.util.Map<java.lang.String,java.lang.Object> map, java.lang.Class<T> desiredResultType) throws org.springframework.expression.EvaluationException
T
- the generic return typeexpression
- the expressionmap
- the map to evaluate againstdesiredResultType
- the desired result typeorg.springframework.expression.EvaluationException
- the evaluation exception