类 SimpleFlowFactoryBean

  • 所有已实现的接口:
    org.springframework.beans.factory.FactoryBean<SimpleFlow>, org.springframework.beans.factory.InitializingBean
    直接已知子类:
    JsrFlowFactoryBean

    public class SimpleFlowFactoryBean
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<SimpleFlow>, org.springframework.beans.factory.InitializingBean
    Convenience factory for SimpleFlow instances for use in XML namespace. It replaces the states in the input with proxies that have a unique name formed from the flow name and the original state name (unless the name is already in that form, in which case it is not modified).
    作者:
    Dave Syer, Michael Minella
    • 方法详细资料

      • setStateTransitionComparator

        public void setStateTransitionComparator​(java.util.Comparator<StateTransition> stateTransitionComparator)
        参数:
        stateTransitionComparator - Comparator implementation that addresses the ordering of state evaluation
      • setFlowType

        public void setFlowType​(java.lang.Class<SimpleFlow> flowType)
        参数:
        flowType - Used to inject the type of flow (regular Spring Batch or JSR-352)
      • setName

        public void setName​(java.lang.String name)
        The name of the flow that is created by this factory.
        参数:
        name - the value of the name
      • setStateTransitions

        public void setStateTransitions​(java.util.List<StateTransition> stateTransitions)
        The raw state transitions for the flow. They will be transformed into proxies that have the same behavior but unique names prefixed with the flow name.
        参数:
        stateTransitions - the list of transitions
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Check mandatory properties (name).
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception - thrown if error occurs.
      • getObject

        public SimpleFlow getObject()
                             throws java.lang.Exception
        指定者:
        getObject 在接口中 org.springframework.beans.factory.FactoryBean<SimpleFlow>
        抛出:
        java.lang.Exception
      • createNewStepState

        protected State createNewStepState​(State state,
                                           java.lang.String oldName,
                                           java.lang.String stateName)
        Provides an extension point to provide alternative StepState implementations within a SimpleFlow
        参数:
        state - The state that will be used to create the StepState
        oldName - The name to be replaced
        stateName - The name for the new State
        返回:
        a state for the requested data
      • getObjectType

        public java.lang.Class<?> getObjectType()
        指定者:
        getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<SimpleFlow>
      • isSingleton

        public boolean isSingleton()
        指定者:
        isSingleton 在接口中 org.springframework.beans.factory.FactoryBean<SimpleFlow>