Example usage for org.springframework.statemachine.support StateMachineContextUtils getConversionService

List of usage examples for org.springframework.statemachine.support StateMachineContextUtils getConversionService

Introduction

In this page you can find the example usage for org.springframework.statemachine.support StateMachineContextUtils getConversionService.

Prototype

public static ConversionService getConversionService(BeanFactory beanFactory) 

Source Link

Document

Return the ConversionService bean whose name is "yarnConversionService" if available.

Usage

From source file:org.springframework.statemachine.support.ExpressionUtils.java

private static StandardEvaluationContext doCreateContext(BeanFactory beanFactory) {
    ConversionService conversionService = null;
    StandardEvaluationContext evaluationContext = null;
    if (beanFactory != null) {
        evaluationContext = StateMachineContextUtils.getEvaluationContext(beanFactory);
    }/* ww  w .j av  a2 s  .c o  m*/
    if (evaluationContext == null) {
        if (beanFactory != null) {
            conversionService = StateMachineContextUtils.getConversionService(beanFactory);
        }
        evaluationContext = createStandardEvaluationContext(conversionService, beanFactory);
    }
    return evaluationContext;
}