Class ExpressionUtils

java.lang.Object
org.springframework.statemachine.support.ExpressionUtils

public abstract class ExpressionUtils extends Object
Utility class with static methods for helping with establishing environments for SpEL expressions.
  • Constructor Details

    • ExpressionUtils

      public ExpressionUtils()
  • Method Details

    • createStandardEvaluationContext

      public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext()
      Used to create a context with no BeanFactory, usually in tests.
      Returns:
      The evaluation context.
    • createStandardEvaluationContext

      public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.beans.factory.BeanFactory beanFactory)
      Obtains the context from the beanFactory if not null; emits a warning if the beanFactory is null.
      Parameters:
      beanFactory - The bean factory.
      Returns:
      The evaluation context.