Skip to content

Commit 58bbc96

Browse files
committed
Polish 1eed5a3
* Fix section levels * Fix typos in code examples * Minor updates
1 parent 1eed5a3 commit 58bbc96

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

spring-batch-docs/asciidoc/index.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ of the Batch domain language.
1717
administration.
1818
<<step.adoc#configureStep,Configuring a Step>> :: Step configuration, different types of steps,
1919
controlling step flow.
20-
<<readersAndWriters.adoc#readersAndWriters,ItemReaders and ItemWriters>> :: Item readers
21-
and writers interfaces and how to use them.
22-
<<processor.adoc#processor,ItemProcessor>> :: Item processor interface and how to use it.
20+
<<readersAndWriters.adoc#readersAndWriters,Item reading and writing>> :: `ItemReader`
21+
and `ItemWriter` interfaces and how to use them.
22+
<<processor.adoc#itemProcessor,Item processing>> :: `ItemProcessor` interface and how to use it.
2323
<<scalability.adoc#scalability,Scaling and Parallel Processing>> :: Multi-threaded steps,
2424
parallel steps, remote chunking and partitioning.
2525
<<repeat.adoc#repeat,Repeat>> :: Completion policies and exception handling of repetitive actions.

spring-batch-docs/asciidoc/processor.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
:toc: left
33
:toclevels: 4
44

5-
[[processor]]
6-
== ItemProcessor
5+
[[itemProcessor]]
6+
== Item processing
77

88
ifndef::onlyonetoggle[]
99
include::toggle.adoc[]
1010
endif::onlyonetoggle[]
1111

12-
The `ItemReader` and `ItemWriter` interfaces are both very useful for their specific
12+
The <<readersAndWriters.adoc#readersAndWriters,ItemReader and ItemWriter interfaces>> are both very useful for their specific
1313
tasks, but what if you want to insert business logic before writing? One option for both
1414
reading and writing is to use the composite pattern: Create an `ItemWriter` that contains
1515
another `ItemWriter` or an `ItemReader` that contains another `ItemReader`. The following
@@ -117,7 +117,7 @@ public Job ioSampleJob() {
117117
@Bean
118118
public Step step1() {
119119
return this.stepBuilderFactory.get("step1")
120-
.<String, String>chunk(2)
120+
.<Foo, Bar>chunk(2)
121121
.reader(fooReader())
122122
.processor(fooProcessor())
123123
.writer(barWriter())
@@ -129,7 +129,7 @@ A difference between `ItemProcessor` and `ItemReader` or `ItemWriter` is that an
129129
is optional for a `Step`.
130130

131131
[[chainingItemProcessors]]
132-
==== Chaining ItemProcessors
132+
=== Chaining ItemProcessors
133133

134134
Performing a single transformation is useful in many scenarios, but what if you want to
135135
'chain' together multiple `ItemProcessor` implementations? This can be accomplished using
@@ -223,7 +223,7 @@ public Job ioSampleJob() {
223223
@Bean
224224
public Step step1() {
225225
return this.stepBuilderFactory.get("step1")
226-
.<String, String>chunk(2)
226+
.<Foo, Foobar>chunk(2)
227227
.reader(fooReader())
228228
.processor(compositeProcessor())
229229
.writer(foobarWriter())
@@ -245,7 +245,7 @@ public CompositeItemProcessor compositeProcessor() {
245245
----
246246

247247
[[filteringRecords]]
248-
==== Filtering Records
248+
=== Filtering Records
249249

250250
One typical use for an item processor is to filter out records before they are passed to
251251
the `ItemWriter`. Filtering is an action distinct from skipping. Skipping indicates that
@@ -265,7 +265,7 @@ the `ItemWriter`. As usual, an exception thrown from the `ItemProcessor` results
265265
skip.
266266

267267
[[validatingInput]]
268-
==== Validating Input
268+
=== Validating Input
269269

270270
In the <<readersAndWriters.adoc#readersAndWriters,ItemReaders and ItemWriters>> chapter, multiple approaches to parsing input have been
271271
discussed. Each major implementation throws an exception if it is not 'well-formed'. The
@@ -369,7 +369,7 @@ public BeanValidatingItemProcessor<Person> beanValidatingItemProcessor() throws
369369
----
370370

371371
[[faultTolerant]]
372-
==== Fault Tolerance
372+
=== Fault Tolerance
373373

374374
When a chunk is rolled back, items that have been cached during reading may be
375375
reprocessed. If a step is configured to be fault tolerant (typically by using skip or

0 commit comments

Comments
 (0)