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:
- BeanDefinitionParser
public class FlowParser
- extends AbstractSingleBeanDefinitionParser
- Author:
- Dave Syer
Method Summary |
protected void |
doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder)
|
protected Class<SimpleFlow> |
getBeanClass(Element element)
|
protected static Collection<BeanDefinition> |
getNextElements(ParserContext parserContext,
BeanDefinition stateDef,
Element element)
|
protected static Collection<BeanDefinition> |
getNextElements(ParserContext parserContext,
String stepId,
BeanDefinition stateDef,
Element element)
|
static BeanDefinition |
getStateTransitionReference(ParserContext parserContext,
BeanDefinition stateDefinition,
String on,
String next)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowParser
public FlowParser(String flowName,
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 Class<SimpleFlow> getBeanClass(Element element)
- Overrides:
getBeanClass
in class AbstractSingleBeanDefinitionParser
doParse
protected void doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder)
- Overrides:
doParse
in class AbstractSingleBeanDefinitionParser
- Parameters:
element
- the top level element containing a flow definitionparserContext
- the ParserContext
getNextElements
protected static Collection<BeanDefinition> getNextElements(ParserContext parserContext,
BeanDefinition stateDef,
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 Collection<BeanDefinition> getNextElements(ParserContext parserContext,
String stepId,
BeanDefinition stateDef,
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 BeanDefinition getStateTransitionReference(ParserContext parserContext,
BeanDefinition stateDefinition,
String on,
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 SpringSource. All Rights Reserved.