Package org.springframework.data.spel
Interface ReactiveEvaluationContextProvider
- All Superinterfaces:
EvaluationContextProvider
- All Known Implementing Classes:
ReactiveExtensionAwareEvaluationContextProvider
Provides a way to access a centrally defined potentially shared
EvaluationContext
.- Since:
- 2.4
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from interface org.springframework.data.spel.EvaluationContextProvider
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<? extends org.springframework.expression.EvaluationContext>
getEvaluationContextLater
(Object rootObject) Return aEvaluationContext
built using the given parameter values.default reactor.core.publisher.Mono<? extends org.springframework.expression.EvaluationContext>
getEvaluationContextLater
(Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContext
built using the given parameter values and consideringexpression dependencies
.Methods inherited from interface org.springframework.data.spel.EvaluationContextProvider
getEvaluationContext, getEvaluationContext
-
Method Details
-
getEvaluationContextLater
reactor.core.publisher.Mono<? extends org.springframework.expression.EvaluationContext> getEvaluationContextLater(Object rootObject) Return aEvaluationContext
built using the given parameter values.- Parameters:
rootObject
- the root object to set in theEvaluationContext
.- Returns:
- a mono that emits exactly one
EvaluationContext
.
-
getEvaluationContextLater
default reactor.core.publisher.Mono<? extends org.springframework.expression.EvaluationContext> getEvaluationContextLater(Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContext
built using the given parameter values and consideringexpression dependencies
. The returnedEvaluationContext
may contain a reduced visibility of methods and properties/fields according to the requiredexpression dependencies
.- Parameters:
rootObject
- the root object to set in theEvaluationContext
.dependencies
- the requested expression dependencies to be available.- Returns:
- a mono that emits exactly one
EvaluationContext
. - Since:
- 2.4
-