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 EvaluationContextDeprecated.since 4.0, EvaluationContext is always provided.static ValueEvaluationContextof(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
ValueEvaluationContextfor 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 requiredEvaluationContextor throwsIllegalStateExceptionif there is no evaluation context available.- Returns:
- the
EvaluationContext. - Since:
- 3.4
-