org.springframework.yarn.support
Class ExpressionUtils

java.lang.Object
  extended by org.springframework.yarn.support.ExpressionUtils

public abstract class ExpressionUtils
extends Object

Utility class with static methods for helping with establishing environments for SpEL expressions.

Author:
Gary Russell, Oleg Zhurakousky, Artem Bilan

Constructor Summary
ExpressionUtils()
           
 
Method Summary
static StandardEvaluationContext createStandardEvaluationContext()
          Used to create a context with no BeanFactory, usually in tests.
static StandardEvaluationContext createStandardEvaluationContext(BeanFactory beanFactory)
          Obtains the context from the beanFactory if not null; emits a warning if the beanFactory is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionUtils

public ExpressionUtils()
Method Detail

createStandardEvaluationContext

public static StandardEvaluationContext createStandardEvaluationContext()
Used to create a context with no BeanFactory, usually in tests.

Returns:
The evaluation context.

createStandardEvaluationContext

public static StandardEvaluationContext createStandardEvaluationContext(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.