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:
wxlund
2008-02-29 08:36:59 +00:00
parent 651a5362a6
commit a2135adbba
2 changed files with 669 additions and 277 deletions

View File

@@ -96,4 +96,37 @@
<para></para>
</section>
</chapter>
<section>
<title>Configuration
<para>
<programlisting>
&lt;property name="itemProvider"&gt;
&lt;bean class="org.springframework.batch.sample.item.provider.PlayerItemProvider"&gt;
&lt;property name="inputSource" ref="playerFileInputSource" /&gt;
&lt;property name="fieldSetMapper"&gt;
&lt;bean class="org.springframework.batch.sample.mapping.PlayerMapper" /&gt;
&lt;/property&gt;
&lt;/bean&gt;
&lt;/property&gt;
</programlisting>
</para>
<para>The LineTokenizer is just one additional property to the
InputSource as seen here:</para>
<para>
<programlisting>
&lt;property name="tokenizer"&gt;
&lt;bean
class="org.springframework.batch.io.file.support.transform.DelimitedLineTokenizer"&gt;
&lt;property name="names"
value="ID,lastName,firstName,position,birthYear,debutYear" /&gt;
&lt;/bean&gt;
&lt;/property&gt;
</programlisting>
</para>
</section>
</chapter>

File diff suppressed because it is too large Load Diff