OPEN - issue BATCH-105: The functionality in "DefaultFlatFileItemProvider" (validating and mapping) should be provided by the infrastructure layer (DefaultFlatFileInputSource).

http://opensource.atlassian.com/projects/spring/browse/BATCH-105
This commit is contained in:
dsyer
2007-08-21 11:04:34 +00:00
parent c7948c453a
commit d94133b392
2 changed files with 15 additions and 3 deletions

View File

@@ -20,6 +20,7 @@
<config>src/main/resources/jobs/adhocLoopJob.xml</config>
<config>src/main/resources/jobs/infiniteLoopJob.xml</config>
<config>src/main/resources/data-source-context-init.xml</config>
<config>src/main/resources/jobs/compositeProcessorSample.xml</config>
</configs>
<configSets>
<configSet>
@@ -125,5 +126,16 @@
<config>src/main/resources/simple-container-definition.xml</config>
</configs>
</configSet>
<configSet>
<name><![CDATA[compositeProcessor]]></name>
<allowBeanDefinitionOverriding>true</allowBeanDefinitionOverriding>
<incomplete>false</incomplete>
<configs>
<config>src/main/resources/jobs/compositeProcessorSample.xml</config>
<config>src/main/resources/simple-container-definition.xml</config>
<config>src/main/resources/data-source-context.xml</config>
<config>src/main/resources/data-source-context-init.xml</config>
</configs>
</configSet>
</configSets>
</beansProjectDescription>

View File

@@ -22,21 +22,21 @@
class="org.springframework.batch.execution.tasklet.RestartableItemProviderTasklet">
<property name="itemProvider">
<bean
class="org.springframework.batch.execution.tasklet.support.DefaultFlatFileItemProvider">
class="org.springframework.batch.item.provider.DefaultFlatFileItemProvider">
<property name="source" ref="fileInputTemplate" />
<property name="mapper" ref="fieldSetMapper" />
<property name="validator" ref="fixedValidator" />
</bean>
</property>
<property name="itemProcessor">
<bean class="org.springframework.batch.execution.tasklet.support.CompositeItemProcessor" >
<bean class="org.springframework.batch.item.processor.CompositeItemProcessor" >
<property name="itemProcessors" >
<list>
<bean class="org.springframework.batch.sample.module.process.TradeProcessor">
<property name="writer" ref="tradeDao" />
</bean>
<bean class="org.springframework.batch.execution.tasklet.support.OutputSourceItemProcessor">
<bean class="org.springframework.batch.item.processor.OutputSourceItemProcessor">
<property name="outputSource" ref="flatFileOutputSource" />
</bean>
</list>