Interface ValueEvaluationContext
public interface ValueEvaluationContext
Expressions are executed using an evaluation context. This context is used to resolve references during (SpEL,
property placeholder) expression evaluation.
- Since:
- 3.3
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionReturns theEnvironment
.Returns theEvaluationContext
.default EvaluationContext
Deprecated.since 4.0, EvaluationContext is always provided.static ValueEvaluationContext
of
(Environment environment, EvaluationContext evaluationContext) Returns a newValueEvaluationContext
.
-
Method Details
-
of
Returns a newValueEvaluationContext
.- Parameters:
environment
- must not be null.evaluationContext
- must not be null.- Returns:
- a new
ValueEvaluationContext
for the given environment and evaluation context.
-
getEnvironment
Environment getEnvironment()Returns theEnvironment
.- Returns:
- the
Environment
.
-
getEvaluationContext
EvaluationContext getEvaluationContext()Returns theEvaluationContext
.- Returns:
- the
EvaluationContext
.
-
getRequiredEvaluationContext
Deprecated.since 4.0, EvaluationContext is always provided.Returns the requiredEvaluationContext
or throwsIllegalStateException
if there is no evaluation context available.- Returns:
- the
EvaluationContext
. - Since:
- 3.4
-