InlineFlowParser flowParser = new InlineFlowParser(prefix + "." + i, jobFactoryRef); flows.add(flowParser.parse(nextElement, parserContext)); stateBuilder.addConstructorArgValue(prefix); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element);
/** * Construct a {@link InlineFlowParser} with the specified name and using the * provided job repository ref. * * @param flowName the name of the flow * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag */ public InlineFlowParser(String flowName, String jobFactoryRef) { this.flowName = flowName; setJobFactoryRef(jobFactoryRef); }
InlineFlowParser flowParser = new InlineFlowParser(jobName, jobName); BeanDefinition flowDef = flowParser.parse(element, parserContext); builder.addPropertyValue("flow", flowDef);
/** * Parse the decision and turn it into a list of transitions. * * @param element the <decision/gt; element to parse * @param parserContext the parser context for the bean factory * @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 refAttribute = element.getAttribute("decider"); String idAttribute = element.getAttribute("id"); BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.batch.core.job.flow.support.state.DecisionState"); stateBuilder.addConstructorArgValue(new RuntimeBeanReference(refAttribute)); stateBuilder.addConstructorArgValue(idAttribute); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element); } }
InlineFlowParser flowParser = new InlineFlowParser(jobName, jobName); BeanDefinition flowDef = flowParser.parse(element, parserContext); builder.addPropertyValue("flow", flowDef);
/** * Parse the flow and turn it into a list of transitions. * * @param element the <flow/gt; element to parse * @param parserContext the parser context for the bean factory * @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 refAttribute = element.getAttribute(REF_ATTR); String idAttribute = element.getAttribute(ID_ATTR); BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder .genericBeanDefinition("org.springframework.batch.core.job.flow.support.state.FlowState"); AbstractBeanDefinition flowDefinition = new GenericBeanDefinition(); flowDefinition.setParentName(refAttribute); MutablePropertyValues propertyValues = flowDefinition.getPropertyValues(); propertyValues.addPropertyValue("name", idAttribute); stateBuilder.addConstructorArgValue(flowDefinition); stateBuilder.addConstructorArgValue(idAttribute); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element); } }
InlineFlowParser flowParser = new InlineFlowParser(prefix + "." + i, jobFactoryRef); flows.add(flowParser.parse(nextElement, parserContext)); stateBuilder.addConstructorArgValue(prefix); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element);
InlineFlowParser flowParser = new InlineFlowParser(jobName, jobName); BeanDefinition flowDef = flowParser.parse(element, parserContext); builder.addPropertyValue("flow", flowDef);
/** * 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); }
/** * Construct a {@link InlineFlowParser} with the specified name and using the * provided job repository ref. * * @param flowName the name of the flow * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag */ public InlineFlowParser(String flowName, String jobFactoryRef) { this.flowName = flowName; setJobFactoryRef(jobFactoryRef); }
InlineFlowParser flowParser = new InlineFlowParser(prefix + "." + i, jobFactoryRef); flows.add(flowParser.parse(nextElement, parserContext)); stateBuilder.addConstructorArgValue(prefix); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element);
InlineFlowParser flowParser = new InlineFlowParser(jobName, jobName); BeanDefinition flowDef = flowParser.parse(element, parserContext); builder.addPropertyValue("flow", flowDef);
/** * Parse the decision and turn it into a list of transitions. * * @param element the <decision/gt; element to parse * @param parserContext the parser context for the bean factory * @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 refAttribute = element.getAttribute("decider"); String idAttribute = element.getAttribute("id"); BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.batch.core.job.flow.support.state.DecisionState"); stateBuilder.addConstructorArgValue(new RuntimeBeanReference(refAttribute)); stateBuilder.addConstructorArgValue(idAttribute); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element); } }
/** * Construct a {@link InlineFlowParser} with the specified name and using the * provided job repository ref. * * @param flowName the name of the flow * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag */ public InlineFlowParser(String flowName, String jobFactoryRef) { this.flowName = flowName; setJobFactoryRef(jobFactoryRef); }
InlineFlowParser flowParser = new InlineFlowParser(prefix + "." + i, jobFactoryRef); flows.add(flowParser.parse(nextElement, parserContext)); stateBuilder.addConstructorArgValue(prefix); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element);
InlineFlowParser flowParser = new InlineFlowParser(jobName, jobName); BeanDefinition flowDef = flowParser.parse(element, parserContext); builder.addPropertyValue("flow", flowDef);
/** * Parse the decision and turn it into a list of transitions. * * @param element the <decision/gt; element to parse * @param parserContext the parser context for the bean factory * @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 refAttribute = element.getAttribute("decider"); String idAttribute = element.getAttribute("id"); BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.batch.core.job.flow.support.state.DecisionState"); stateBuilder.addConstructorArgValue(new RuntimeBeanReference(refAttribute)); stateBuilder.addConstructorArgValue(idAttribute); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element); } }
/** * Construct a {@link InlineFlowParser} with the specified name and using the * provided job repository ref. * * @param flowName the name of the flow * @param jobFactoryRef the reference to the {@link JobParserJobFactoryBean} * from the enclosing tag */ public InlineFlowParser(String flowName, String jobFactoryRef) { this.flowName = flowName; setJobFactoryRef(jobFactoryRef); }
InlineFlowParser flowParser = new InlineFlowParser(prefix + "." + i, jobFactoryRef); flows.add(flowParser.parse(nextElement, parserContext)); stateBuilder.addConstructorArgValue(prefix); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element);
/** * Parse the decision and turn it into a list of transitions. * * @param element the <decision/gt; element to parse * @param parserContext the parser context for the bean factory * @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 refAttribute = element.getAttribute("decider"); String idAttribute = element.getAttribute("id"); BeanDefinitionBuilder stateBuilder = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.batch.core.job.flow.support.state.DecisionState"); stateBuilder.addConstructorArgValue(new RuntimeBeanReference(refAttribute)); stateBuilder.addConstructorArgValue(idAttribute); return InlineFlowParser.getNextElements(parserContext, stateBuilder.getBeanDefinition(), element); } }