Interface ConfigurableExpressionEvaluationContext
- All Superinterfaces:
AutoCloseable, ExpressionEvaluationContext
- All Known Implementing Classes:
DefaultExpressionEvaluationContext
@Internal
public sealed interface ConfigurableExpressionEvaluationContext
extends ExpressionEvaluationContext
permits DefaultExpressionEvaluationContext
Expression evaluation context that can be configured before evaluation.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Method Summary
Modifier and TypeMethodDescriptionwithArguments(@Nullable Object @Nullable [] args) Set arguments passed to invoked method.withArguments(@Nullable Object thisObject, @Nullable Object @Nullable [] args) Set arguments passed to invoked method.withBeanContext(@Nullable BeanContext beanContext) Set context in which expression is evaluated.withOwningBean(@Nullable BeanDefinition<?> beanDefinition) Set bean owning evaluated expression.Methods inherited from interface AutoCloseable
closeMethods inherited from interface ExpressionEvaluationContext
getArgument, getBean, getProperty, getThis
-
Method Details
-
withArguments
Set arguments passed to invoked method.- Parameters:
args- method arguments- Returns:
- evaluation context which arguments can be used in evaluation.
-
withArguments
ConfigurableExpressionEvaluationContext withArguments(@Nullable Object thisObject, @Nullable Object @Nullable [] args) Set arguments passed to invoked method.- Parameters:
thisObject- In the case of non-static methods the object that represents this objectargs- method arguments- Returns:
- evaluation context which arguments can be used in evaluation.
-
withOwningBean
Set bean owning evaluated expression.- Parameters:
beanDefinition- owning bean definition- Returns:
- evaluation context aware of owning bean.
-
withBeanContext
Set context in which expression is evaluated.- Parameters:
beanContext- bean context- Returns:
- evaluation context aware of bean context.
-