类 AbstractFlowParser

  • 所有已实现的接口:
    org.springframework.beans.factory.xml.BeanDefinitionParser
    直接已知子类:
    FlowParser, InlineFlowParser, TopLevelFlowParser

    public abstract class AbstractFlowParser
    extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
    作者:
    Dave Syer, Michael Minella, Chris Schaefer
    • 字段概要

      字段 
      修饰符和类型字段说明
      protected static java.lang.StringDECISION_ELE 
      protected static java.lang.StringEND_ELE 
      protected static intendCounter 
      protected static java.lang.StringEXIT_CODE_ATTR 
      protected static java.lang.StringFAIL_ELE 
      protected static java.lang.StringFLOW_ELE 
      protected static java.lang.StringID_ATTR 
      protected static java.lang.StringNEXT_ATTR 
      protected static java.lang.StringNEXT_ELE 
      protected static java.lang.StringON_ATTR 
      protected static java.lang.StringRESTART_ATTR 
      protected static java.lang.StringSPLIT_ELE 
      protected static java.lang.StringSTEP_ELE 
      protected static java.lang.StringSTOP_ELE 
      protected static java.lang.StringTO_ATTR 
      • 从类继承的字段 org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

        ID_ATTRIBUTE, NAME_ATTRIBUTE
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型方法说明
      protected static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition>createTransition​(FlowExecutionStatus status, java.lang.String on, java.lang.String next, java.lang.String exitCode, org.springframework.beans.factory.config.BeanDefinition stateDef, org.springframework.beans.factory.xml.ParserContext parserContext, boolean abandon) 
      protected voiddoParse​(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder) 
      protected voidfindAllReachableElements​(java.lang.String startElement, java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> reachableElementMap, java.util.Set<java.lang.String> accumulator)
      Find all of the elements reachable from the startElement.
      protected static FlowExecutionStatusgetBatchStatusFromEndTransitionName​(java.lang.String elementName) 
      protected java.lang.Class<?>getBeanClass​(org.w3c.dom.Element element) 
      static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition>getNextElements​(org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.String stepId, org.springframework.beans.factory.config.BeanDefinition stateDef, org.w3c.dom.Element element) 
      static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition>getNextElements​(org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.config.BeanDefinition stateDef, org.w3c.dom.Element element) 
      static org.springframework.beans.factory.config.BeanDefinitiongetStateTransitionReference​(org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.config.BeanDefinition stateDefinition, java.lang.String on, java.lang.String next) 
      protected voidsetJobFactoryRef​(java.lang.String jobFactoryRef)
      Convenience method for subclasses to set the job factory reference if it is available (null is fine, but the quality of error reports is better if it is available).
      protected static voidverifyUniquePattern​(org.w3c.dom.Element transitionElement, java.util.List<java.lang.String> patterns, org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext) 
      • 从类继承的方法 org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

        doParse, getBeanClassName, getParentName, parseInternal
      • 从类继承的方法 org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

        parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • setJobFactoryRef

        protected void setJobFactoryRef​(java.lang.String jobFactoryRef)
        Convenience method for subclasses to set the job factory reference if it is available (null is fine, but the quality of error reports is better if it is available).
        参数:
        jobFactoryRef - name of the ref
      • getBeanClass

        protected java.lang.Class<?> getBeanClass​(org.w3c.dom.Element element)
        覆盖:
        getBeanClass 在类中 org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
      • doParse

        protected void doParse​(org.w3c.dom.Element element,
                               org.springframework.beans.factory.xml.ParserContext parserContext,
                               org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
        覆盖:
        doParse 在类中 org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
        参数:
        element - the top level element containing a flow definition
        parserContext - the ParserContext
      • findAllReachableElements

        protected void findAllReachableElements​(java.lang.String startElement,
                                                java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> reachableElementMap,
                                                java.util.Set<java.lang.String> accumulator)
        Find all of the elements reachable from the startElement.
        参数:
        startElement - name of the element to start from
        reachableElementMap - Map of elements that can be reached from the startElement
        accumulator - a collection of reachable element names
      • getNextElements

        public static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> getNextElements​(org.springframework.beans.factory.xml.ParserContext parserContext,
                                                                                                                    org.springframework.beans.factory.config.BeanDefinition stateDef,
                                                                                                                    org.w3c.dom.Element element)
        参数:
        parserContext - the parser context for the bean factory
        stateDef - The bean definition for the current state
        element - the <step/gt; element to parse
        返回:
        a collection of StateTransition references
      • getNextElements

        public static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> getNextElements​(org.springframework.beans.factory.xml.ParserContext parserContext,
                                                                                                                    java.lang.String stepId,
                                                                                                                    org.springframework.beans.factory.config.BeanDefinition stateDef,
                                                                                                                    org.w3c.dom.Element element)
        参数:
        parserContext - the parser context for the bean factory
        stepId - the id of the current state if it is a step state, null otherwise
        stateDef - The bean definition for the current state
        element - the <step/gt; element to parse
        返回:
        a collection of StateTransition references
      • verifyUniquePattern

        protected static void verifyUniquePattern​(org.w3c.dom.Element transitionElement,
                                                  java.util.List<java.lang.String> patterns,
                                                  org.w3c.dom.Element element,
                                                  org.springframework.beans.factory.xml.ParserContext parserContext)
        参数:
        transitionElement - The element to parse
        patterns - a list of patterns on state transitions for this element
        element - Element representing the source.
        parserContext - the parser context for the bean factory
      • createTransition

        protected static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> createTransition​(FlowExecutionStatus status,
                                                                                                                        java.lang.String on,
                                                                                                                        java.lang.String next,
                                                                                                                        java.lang.String exitCode,
                                                                                                                        org.springframework.beans.factory.config.BeanDefinition stateDef,
                                                                                                                        org.springframework.beans.factory.xml.ParserContext parserContext,
                                                                                                                        boolean abandon)
        参数:
        status - The batch status that this transition will set. Use BatchStatus.UNKNOWN if not applicable.
        on - The pattern that this transition should match. Use null for "no restriction" (same as "*").
        next - The state to which this transition should go. Use null if not applicable.
        exitCode - The exit code that this transition will set. Use null to default to batchStatus.
        stateDef - The bean definition for the current state
        parserContext - the parser context for the bean factory
        abandon - the abandon flag to be used by the transition.
        返回:
        a collection of StateTransition references
      • getStateTransitionReference

        public static org.springframework.beans.factory.config.BeanDefinition getStateTransitionReference​(org.springframework.beans.factory.xml.ParserContext parserContext,
                                                                                                          org.springframework.beans.factory.config.BeanDefinition stateDefinition,
                                                                                                          java.lang.String on,
                                                                                                          java.lang.String next)
        参数:
        parserContext - the parser context
        stateDefinition - a reference to the state implementation
        on - the pattern value
        next - the next step id
        返回:
        a bean definition for a StateTransition