Class ExpressionUtils
java.lang.Object
org.springframework.statemachine.support.ExpressionUtils
Utility class with static methods for helping with establishing environments for
SpEL expressions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.expression.spel.support.StandardEvaluationContext
Used to create a context with no BeanFactory, usually in tests.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.
-
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.
-