<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:p="http://www.springframework.org/schema/p"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
       	http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       	http://www.springframework.org/schema/aop
 		http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

	<bean id="fileInputTemplate"
		class="org.springframework.batch.item.file.FlatFileItemReader">
		<property name="resource" ref="fileInputLocator" />
		<property name="lineTokenizer" ref="orderFileDescriptor" />
		<property name="fieldSetMapper">
			<bean
				class="org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper" />
		</property>
	</bean>

	<bean id="flatFileTransformerOutput"
		class="org.springframework.batch.item.transform.ItemTransformerItemWriter">
		<property name="delegate" ref="flatFileOutput"/>
		<property name="itemTransformer">
			<bean
				class="org.springframework.batch.item.file.transform.RecursiveCollectionItemTransformer" />
		</property>
	</bean>

	<bean id="flatFileOutput"
		class="org.springframework.batch.item.file.FlatFileItemWriter">
		<property name="resource" ref="fileOutputLocator" />
		<property name="fieldSetCreator">
			<bean
				class="org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper" />
		</property>
	</bean>

	<bean id="delimitedLineAggregator"
		class="org.springframework.batch.item.file.transform.DelimitedLineTokenizer" />

	<bean id="fixedLineAggregator"
		class="org.springframework.batch.item.file.transform.FixedLengthLineAggregator" />

</beans>