public class ReactiveExtensionAwareEvaluationContextProvider extends Object implements ReactiveEvaluationContextProvider
EvaluationContextProvider that assembles an EvaluationContext from a list of
ReactiveEvaluationContextExtension and EvaluationContextExtension instances.DEFAULT| Constructor and Description |
|---|
ReactiveExtensionAwareEvaluationContextProvider() |
ReactiveExtensionAwareEvaluationContextProvider(Collection<? extends ExtensionIdAware> extensions)
Creates a new
ReactiveExtensionAwareEvaluationContextProvider for the given
EvaluationContextExtensions. |
ReactiveExtensionAwareEvaluationContextProvider(ListableBeanFactory beanFactory)
Create a new
ReactiveExtensionAwareEvaluationContextProvider with extensions looked up lazily from the
given ListableBeanFactory. |
| Modifier and Type | Method and Description |
|---|---|
EvaluationContext |
getEvaluationContext(Object rootObject)
Return a
EvaluationContext built using the given parameter values. |
EvaluationContext |
getEvaluationContext(Object rootObject,
ExpressionDependencies dependencies)
Return a tailored
EvaluationContext built using the given parameter values and considering
expression dependencies. |
reactor.core.publisher.Mono<StandardEvaluationContext> |
getEvaluationContextLater(Object rootObject)
Return a
EvaluationContext built using the given parameter values. |
reactor.core.publisher.Mono<StandardEvaluationContext> |
getEvaluationContextLater(Object rootObject,
ExpressionDependencies dependencies)
Return a tailored
EvaluationContext built using the given parameter values and considering
expression dependencies. |
public ReactiveExtensionAwareEvaluationContextProvider()
public ReactiveExtensionAwareEvaluationContextProvider(ListableBeanFactory beanFactory)
ReactiveExtensionAwareEvaluationContextProvider with extensions looked up lazily from the
given ListableBeanFactory.beanFactory - the ListableBeanFactory to lookup extensions from.public ReactiveExtensionAwareEvaluationContextProvider(Collection<? extends ExtensionIdAware> extensions)
ReactiveExtensionAwareEvaluationContextProvider for the given
EvaluationContextExtensions.extensions - must not be null.public EvaluationContext getEvaluationContext(Object rootObject)
EvaluationContextProviderEvaluationContext built using the given parameter values.getEvaluationContext in interface EvaluationContextProviderrootObject - the root object to set in the EvaluationContext.public EvaluationContext getEvaluationContext(Object rootObject, ExpressionDependencies dependencies)
EvaluationContextProviderEvaluationContext 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.getEvaluationContext in interface EvaluationContextProviderrootObject - the root object to set in the EvaluationContext.dependencies - the requested expression dependencies to be available.public reactor.core.publisher.Mono<StandardEvaluationContext> getEvaluationContextLater(Object rootObject)
ReactiveEvaluationContextProviderEvaluationContext built using the given parameter values.getEvaluationContextLater in interface ReactiveEvaluationContextProviderrootObject - the root object to set in the EvaluationContext.EvaluationContext.public reactor.core.publisher.Mono<StandardEvaluationContext> getEvaluationContextLater(Object rootObject, ExpressionDependencies dependencies)
ReactiveEvaluationContextProviderEvaluationContext 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.getEvaluationContextLater in interface ReactiveEvaluationContextProviderrootObject - the root object to set in the EvaluationContext.dependencies - the requested expression dependencies to be available.EvaluationContext.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.