|
18 | 18 | import java.util.List;
|
19 | 19 |
|
20 | 20 | import org.springframework.batch.core.configuration.xml.ExceptionElementParser;
|
21 |
| -import org.springframework.batch.core.jsr.configuration.support.BatchArtifact; |
| 21 | +import org.springframework.batch.core.jsr.configuration.support.BatchArtifactType; |
22 | 22 | import org.springframework.batch.core.step.item.ChunkOrientedTasklet;
|
23 | 23 | import org.springframework.batch.item.ItemProcessor;
|
24 | 24 | import org.springframework.batch.item.ItemReader;
|
@@ -129,19 +129,19 @@ private void parseChildElement(Element element, ParserContext parserContext,
|
129 | 129 | propertyValues.addPropertyValue("stepItemReader", new RuntimeBeanReference(artifactName));
|
130 | 130 | }
|
131 | 131 |
|
132 |
| - new PropertyParser(artifactName, parserContext, BatchArtifact.BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(nestedElement); |
| 132 | + new PropertyParser(artifactName, parserContext, BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(nestedElement); |
133 | 133 | } else if(name.equals(PROCESSOR_ELEMENT)) {
|
134 | 134 | if (StringUtils.hasText(artifactName)) {
|
135 | 135 | propertyValues.addPropertyValue("stepItemProcessor", new RuntimeBeanReference(artifactName));
|
136 | 136 | }
|
137 | 137 |
|
138 |
| - new PropertyParser(artifactName, parserContext, BatchArtifact.BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(nestedElement); |
| 138 | + new PropertyParser(artifactName, parserContext, BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(nestedElement); |
139 | 139 | } else if(name.equals(WRITER_ELEMENT)) {
|
140 | 140 | if (StringUtils.hasText(artifactName)) {
|
141 | 141 | propertyValues.addPropertyValue("stepItemWriter", new RuntimeBeanReference(artifactName));
|
142 | 142 | }
|
143 | 143 |
|
144 |
| - new PropertyParser(artifactName, parserContext, BatchArtifact.BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(nestedElement); |
| 144 | + new PropertyParser(artifactName, parserContext, BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(nestedElement); |
145 | 145 | } else if(name.equals(SKIPPABLE_EXCEPTION_CLASSES_ELEMENT)) {
|
146 | 146 | ManagedMap exceptionClasses = new ExceptionElementParser().parse(element, parserContext, SKIPPABLE_EXCEPTION_CLASSES_ELEMENT);
|
147 | 147 | if(exceptionClasses != null) {
|
@@ -177,7 +177,7 @@ private void parseCustomCheckpointAlgorithm(Element element, ParserContext parse
|
177 | 177 | propertyValues.addPropertyValue("stepChunkCompletionPolicy", new RuntimeBeanReference(name));
|
178 | 178 | }
|
179 | 179 |
|
180 |
| - new PropertyParser(name, parserContext, BatchArtifact.BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(checkpointAlgorithmElement); |
| 180 | + new PropertyParser(name, parserContext, BatchArtifactType.STEP_ARTIFACT, stepName).parseProperties(checkpointAlgorithmElement); |
181 | 181 | } else if(elements.size() > 1){
|
182 | 182 | parserContext.getReaderContext().error(
|
183 | 183 | "The <checkpoint-algorithm/> element may not appear more than once in a single <"
|
|
0 commit comments