Example usage for org.springframework.integration.context IntegrationContextUtils getEvaluationContext

List of usage examples for org.springframework.integration.context IntegrationContextUtils getEvaluationContext

Introduction

In this page you can find the example usage for org.springframework.integration.context IntegrationContextUtils getEvaluationContext.

Prototype

public static StandardEvaluationContext getEvaluationContext(BeanFactory beanFactory) 

Source Link

Usage

From source file:org.springframework.integration.expression.ExpressionUtils.java

private static StandardEvaluationContext doCreateContext(BeanFactory beanFactory) {
    ConversionService conversionService = null;
    StandardEvaluationContext evaluationContext = null;
    if (beanFactory != null) {
        evaluationContext = IntegrationContextUtils.getEvaluationContext(beanFactory);
    }//  w  ww. j  a v  a 2  s. c om
    if (evaluationContext == null) {
        if (beanFactory != null) {
            conversionService = IntegrationContextUtils.getConversionService(beanFactory);
        }
        evaluationContext = createStandardEvaluationContext(conversionService, beanFactory);
    }
    return evaluationContext;
}