Updated to m5 terminology. Also, reorganized the chapter to talk about required behavior of ItemReaders before diving into FileItemReader. The execution has some configuration material pulled from chapter 2 and pushed to execution. I'll clean it up tomorrow but felt it was better not to lose it.
This commit is contained in:
@@ -96,4 +96,37 @@
|
||||
|
||||
<para></para>
|
||||
</section>
|
||||
</chapter>
|
||||
|
||||
<section>
|
||||
<title>Configuration
|
||||
<para>
|
||||
<programlisting>
|
||||
<property name="itemProvider">
|
||||
<bean class="org.springframework.batch.sample.item.provider.PlayerItemProvider">
|
||||
<property name="inputSource" ref="playerFileInputSource" />
|
||||
<property name="fieldSetMapper">
|
||||
<bean class="org.springframework.batch.sample.mapping.PlayerMapper" />
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>The LineTokenizer is just one additional property to the
|
||||
InputSource as seen here:</para>
|
||||
|
||||
<para>
|
||||
<programlisting>
|
||||
<property name="tokenizer">
|
||||
<bean
|
||||
class="org.springframework.batch.io.file.support.transform.DelimitedLineTokenizer">
|
||||
<property name="names"
|
||||
value="ID,lastName,firstName,position,birthYear,debutYear" />
|
||||
</bean>
|
||||
</property>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
</section>
|
||||
|
||||
</chapter>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user