Class DecisionParser
java.lang.Object
org.springframework.batch.core.configuration.xml.DecisionParser
Internal parser for the <decision/> elements inside a job. A decision element
references a bean definition for a
JobExecutionDecider
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
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.beans.factory.config.BeanDefinition>
Parse the decision and turn it into a list of transitions.
-
Constructor Details
-
DecisionParser
public DecisionParser()
-
-
Method Details
-
parse
public Collection<org.springframework.beans.factory.config.BeanDefinition> parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext) Parse the decision and turn it into a list of transitions.- Parameters:
element
- the <decision/gt; element to parseparserContext
- the parser context for the bean factory- Returns:
- a collection of bean definitions for
StateTransition
instances objects
-