Class StateMachineContextUtils

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

public class StateMachineContextUtils extends Object
Utility methods for accessing common components from the BeanFactory.
  • Field Details

  • Constructor Details

    • StateMachineContextUtils

      public StateMachineContextUtils()
  • Method Details

    • getConversionService

      public static org.springframework.core.convert.ConversionService getConversionService(org.springframework.beans.factory.BeanFactory beanFactory)
      Return the ConversionService bean whose name is "yarnConversionService" if available.
      Parameters:
      beanFactory - BeanFactory for lookup, must not be null.
      Returns:
      The ConversionService bean whose name is "yarnConversionService" if available.
    • getEvaluationContext

      public static org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(org.springframework.beans.factory.BeanFactory beanFactory)
      Return the StandardEvaluationContext bean whose name is "yarnEvaluationContext" if available.
      Parameters:
      beanFactory - BeanFactory for lookup, must not be null.
      Returns:
      the instance of StandardEvaluationContext bean whose name is "yarnEvaluationContext" .
    • getEventPublisher

      public static StateMachineEventPublisher getEventPublisher(org.springframework.beans.factory.BeanFactory beanFactory)
      Return the StateMachineEventPublisher bean whose name is "stateMachineEventPublisher" if available.
      Parameters:
      beanFactory - BeanFactory for lookup, must not be null.
      Returns:
      state machine event publisher