org.springframework.batch.core.configuration.xml
Class FlowParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
org.springframework.batch.core.configuration.xml.FlowParser
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.BeanDefinitionParser
public class FlowParser
- extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
- Author:
- Dave Syer
| Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
ID_ATTRIBUTE |
|
Constructor Summary |
FlowParser(java.lang.String flowName,
java.lang.String jobFactoryRef)
Construct a FlowParser with the specified name and using the
provided job repository ref. |
|
Method Summary |
protected void |
doParse(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
|
protected java.lang.Class<SimpleFlow> |
getBeanClass(org.w3c.dom.Element element)
|
protected 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)
|
protected 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 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)
|
| Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser |
doParse, getBeanClassName, getParentName, parseInternal |
| Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowParser
public FlowParser(java.lang.String flowName,
java.lang.String jobFactoryRef)
- Construct a
FlowParser with the specified name and using the
provided job repository ref.
- Parameters:
flowName - the name of the flowjobFactoryRef - the reference to the JobParserJobFactoryBean
from the enclosing tag
getBeanClass
protected java.lang.Class<SimpleFlow> getBeanClass(org.w3c.dom.Element element)
- Overrides:
getBeanClass in class 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)
- Overrides:
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
- Parameters:
element - the top level element containing a flow definitionparserContext - the ParserContext
getNextElements
protected 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)
- Parameters:
parserContext - the parser context for the bean factorystateDef - The bean definition for the current stateelement - the <step/gt; element to parse
- Returns:
- a collection of
StateTransition
references
getNextElements
protected 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)
- Parameters:
parserContext - the parser context for the bean factorystepId - the id of the current state if it is a step state, null
otherwisestateDef - The bean definition for the current stateelement - the <step/gt; element to parse
- Returns:
- 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)
- Parameters:
parserContext - the parser contextstateDefinition - a reference to the state implementationon - the pattern valuenext - the next step id
- Returns:
- a bean definition for a
StateTransition
Copyright © 2009. All Rights Reserved.