Element child = (Element) node; if (nodeName.equals(STEP_ELE)) { stateTransitions.addAll(stepParser.parse(child, parserContext, jobFactoryRef)); stepExists = true;
/** * Parse the step and turn it into a list of transitions. * * @param element the <step/gt; element to parse * @param parserContext the parser context for the bean factory * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag * @return a collection of bean definitions for * {@link org.springframework.batch.core.job.flow.support.StateTransition} * instances objects */ public Collection<BeanDefinition> parse(Element element, ParserContext parserContext, String jobFactoryRef) { BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition(StepState.class); String stepId = element.getAttribute(ID_ATTR); AbstractBeanDefinition bd = parseStep(element, parserContext, jobFactoryRef); parserContext.registerBeanComponent(new BeanComponentDefinition(bd, stepId)); stateBuilder.addConstructorArgReference(stepId); return InlineFlowParser.getNextElements(parserContext, stepId, stateBuilder.getBeanDefinition(), element); }
/** * Parse the step and turn it into a list of transitions. * * @param element the <step/gt; element to parse * @param parserContext the parser context for the bean factory * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag * @return a collection of bean definitions for * {@link org.springframework.batch.core.job.flow.support.StateTransition} * instances objects */ public Collection<BeanDefinition> parse(Element element, ParserContext parserContext, String jobFactoryRef) { BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition(StepState.class); String stepId = element.getAttribute(ID_ATTR); AbstractBeanDefinition bd = parseStep(element, parserContext, jobFactoryRef); parserContext.registerBeanComponent(new BeanComponentDefinition(bd, stepId)); stateBuilder.addConstructorArgReference(stepId); return InlineFlowParser.getNextElements(parserContext, stepId, stateBuilder.getBeanDefinition(), element); }
Element child = (Element) node; if (nodeName.equals(STEP_ELE)) { stateTransitions.addAll(stepParser.parse(child, parserContext, jobFactoryRef)); stepExists = true;
/** * Parse the step and turn it into a list of transitions. * * @param element the <step/gt; element to parse * @param parserContext the parser context for the bean factory * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag * @return a collection of bean definitions for * {@link org.springframework.batch.core.job.flow.support.StateTransition} * instances objects */ public Collection<BeanDefinition> parse(Element element, ParserContext parserContext, String jobFactoryRef) { BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition(StepState.class); String stepId = element.getAttribute(ID_ATTR); AbstractBeanDefinition bd = parseStep(element, parserContext, jobFactoryRef); parserContext.registerBeanComponent(new BeanComponentDefinition(bd, stepId)); stateBuilder.addConstructorArgReference(stepId); return InlineFlowParser.getNextElements(parserContext, stepId, stateBuilder.getBeanDefinition(), element); }
Element child = (Element) node; if (nodeName.equals(STEP_ELE)) { stateTransitions.addAll(stepParser.parse(child, parserContext, jobFactoryRef)); stepExists = true;
/** * Parse the step and turn it into a list of transitions. * * @param element the <step/gt; element to parse * @param parserContext the parser context for the bean factory * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag * @return a collection of bean definitions for * {@link org.springframework.batch.core.job.flow.support.StateTransition} * instances objects */ public Collection<BeanDefinition> parse(Element element, ParserContext parserContext, String jobFactoryRef) { BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition(StepState.class); String stepId = element.getAttribute(ID_ATTR); AbstractBeanDefinition bd = parseStep(element, parserContext, jobFactoryRef); parserContext.registerBeanComponent(new BeanComponentDefinition(bd, stepId)); stateBuilder.addConstructorArgReference(stepId); return InlineFlowParser.getNextElements(parserContext, stepId, stateBuilder.getBeanDefinition(), element); }
Element child = (Element) node; if (nodeName.equals(STEP_ELE)) { stateTransitions.addAll(stepParser.parse(child, parserContext, jobFactoryRef)); stepExists = true;
/** * Parse the step and turn it into a list of transitions. * * @param element the <step/gt; element to parse * @param parserContext the parser context for the bean factory * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag * @return a collection of bean definitions for * {@link org.springframework.batch.core.job.flow.support.StateTransition} * instances objects */ public Collection<BeanDefinition> parse(Element element, ParserContext parserContext, String jobFactoryRef) { BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition(StepState.class); String stepId = element.getAttribute(ID_ATTR); AbstractBeanDefinition bd = parseStep(element, parserContext, jobFactoryRef); parserContext.registerBeanComponent(new BeanComponentDefinition(bd, stepId)); stateBuilder.addConstructorArgReference(stepId); return InlineFlowParser.getNextElements(parserContext, stepId, stateBuilder.getBeanDefinition(), element); }
Element child = (Element) node; if (nodeName.equals(STEP_ELE)) { stateTransitions.addAll(stepParser.parse(child, parserContext, jobFactoryRef)); stepExists = true;