RESOLVED - BATCH-821: remove EventSerializer/Deserializer abstractions and use Marshaller/Unmarshaller directly

This commit is contained in:
robokaso
2008-09-05 09:15:21 +00:00
parent 92a03420b1
commit 5994782b37
10 changed files with 158 additions and 97 deletions

View File

@@ -21,18 +21,7 @@
value="trade" />
<property name="resource"
value="data/staxJob/input/20070918.testStream.xmlFileStep.xml" />
<property name="fragmentDeserializer">
<bean
class="org.springframework.batch.item.xml.oxm.UnmarshallingEventReaderDeserializer">
<constructor-arg>
<bean
class="org.springframework.oxm.xstream.XStreamMarshaller">
<property name="aliases"
ref="aliases" />
</bean>
</constructor-arg>
</bean>
</property>
<property name="unmarshaller" ref="tradeMarshaller"/>
</bean>
</property>
<property name="itemWriter" ref="tradeStaxWriter" />
@@ -44,20 +33,14 @@
id="tradeStaxWriter">
<property name="resource"
value="file:target/test-outputs/20070918.testStream.xmlFileStep.output.xml" />
<property name="serializer" ref="tradeMarshallingSerializer" />
<property name="marshaller" ref="tradeMarshaller" />
<property name="rootTagName" value="trades" />
<property name="overwriteOutput" value="true" />
</bean>
<bean
class="org.springframework.batch.item.xml.oxm.MarshallingEventWriterSerializer"
id="tradeMarshallingSerializer">
<constructor-arg>
<bean
class="org.springframework.oxm.xstream.XStreamMarshaller">
<property name="aliases" ref="aliases" />
</bean>
</constructor-arg>
<bean id="tradeMarshaller"
class="org.springframework.oxm.xstream.XStreamMarshaller">
<property name="aliases" ref="aliases" />
</bean>
<util:map id="aliases">