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
EvaluationContextExtension s. |
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
EvaluationContextExtension
s.extensions
- must not be null.public EvaluationContext getEvaluationContext(Object rootObject)
EvaluationContextProvider
EvaluationContext
built using the given parameter values.getEvaluationContext
in interface EvaluationContextProvider
rootObject
- the root object to set in the EvaluationContext
.public EvaluationContext getEvaluationContext(Object rootObject, ExpressionDependencies dependencies)
EvaluationContextProvider
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
.getEvaluationContext
in interface EvaluationContextProvider
rootObject
- 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)
ReactiveEvaluationContextProvider
EvaluationContext
built using the given parameter values.getEvaluationContextLater
in interface ReactiveEvaluationContextProvider
rootObject
- the root object to set in the EvaluationContext
.EvaluationContext
.public reactor.core.publisher.Mono<StandardEvaluationContext> getEvaluationContextLater(Object rootObject, ExpressionDependencies dependencies)
ReactiveEvaluationContextProvider
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
.getEvaluationContextLater
in interface ReactiveEvaluationContextProvider
rootObject
- the root object to set in the EvaluationContext
.dependencies
- the requested expression dependencies to be available.EvaluationContext
.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.