Class SplitParser
java.lang.Object
org.springframework.batch.core.configuration.xml.SplitParser
Internal parser for the <split/> elements inside a job. A split element
optionally references a bean definition for a
TaskExecutor
and goes on to list
a set of transitions to other states with <next on="pattern" to="stepName"/>.
Used by the JobParser
.- Author:
- Dave Syer
- See Also:
-
Constructor Summary
ConstructorDescriptionSplitParser
(String jobFactoryRef) Construct aInlineFlowParser
by using the provided job repository reference. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.beans.factory.config.BeanDefinition>
Parse the split and turn it into a list of transitions.
-
Constructor Details
-
SplitParser
Construct aInlineFlowParser
by using the provided job repository reference.- Parameters:
jobFactoryRef
- The reference to theJobParserJobFactoryBean
from the enclosing tag.
-
-
Method Details
-
parse
public Collection<org.springframework.beans.factory.config.BeanDefinition> parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext) Parse the split and turn it into a list of transitions.- Parameters:
element
- The <split/gt; element to parseparserContext
- The parser context for the bean factory- Returns:
- a collection of bean definitions for
StateTransition
instances objects
-