Interface ReactiveEvaluationContextProvider

All Superinterfaces:
EvaluationContextProvider
All Known Implementing Classes:
ReactiveExtensionAwareEvaluationContextProvider

public interface ReactiveEvaluationContextProvider extends EvaluationContextProvider
Provides a way to access a centrally defined potentially shared EvaluationContext.
Since:
2.4
Author:
Mark Paluch
  • Method Details

    • getEvaluationContextLater

      reactor.core.publisher.Mono<? extends org.springframework.expression.EvaluationContext> getEvaluationContextLater(Object rootObject)
      Return a EvaluationContext built using the given parameter values.
      Parameters:
      rootObject - the root object to set in the EvaluationContext.
      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 tailored EvaluationContext built using the given parameter values and considering expression dependencies. The returned EvaluationContext may contain a reduced visibility of methods and properties/fields according to the required expression dependencies.
      Parameters:
      rootObject - the root object to set in the EvaluationContext.
      dependencies - the requested expression dependencies to be available.
      Returns:
      a mono that emits exactly one EvaluationContext.
      Since:
      2.4