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 Details

    • withArguments

      default @NonNull ConfigurableExpressionEvaluationContext withArguments(@Nullable Object[] args)
      Set arguments passed to invoked method.
      Parameters:
      args - method arguments
      Returns:
      evaluation context which arguments can be used in evaluation.
    • withArguments

      @NonNull ConfigurableExpressionEvaluationContext withArguments(@Nullable Object thisObject, @Nullable Object[] args)
      Set arguments passed to invoked method.
      Parameters:
      thisObject - In the case of non-static methods the object that represents this object
      args - method arguments
      Returns:
      evaluation context which arguments can be used in evaluation.
    • withOwningBean

      @NonNull ConfigurableExpressionEvaluationContext withOwningBean(@Nullable BeanDefinition<?> beanDefinition)
      Set bean owning evaluated expression.
      Parameters:
      beanDefinition - owning bean definition
      Returns:
      evaluation context aware of owning bean.
    • withBeanContext

      @NonNull ConfigurableExpressionEvaluationContext withBeanContext(@Nullable BeanContext beanContext)
      Set context in which expression is evaluated.
      Parameters:
      beanContext - bean context
      Returns:
      evaluation context aware of bean context.