Skip to content

Commit

Permalink
Fix misleading documentation regarding the ItemWriteListener
Browse files Browse the repository at this point in the history
Resolves #4400
  • Loading branch information
hwan33 authored and fmbenhassine committed Mar 11, 2024
1 parent 2c0bddc commit dbb4e21
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ public interface ItemWriteListener<S> extends StepListener {
----

The `beforeWrite` method is called before `write` on the `ItemWriter` and is handed the
list of items that is written. The `afterWrite` method is called after the item has been
successfully written. If there was an error while writing, the `onWriteError` method is
called. The exception encountered and the item that was attempted to be written are
list of items that is written. The `afterWrite` method is called after the items have been
successfully written, but before committing the transaction associated with the chunk's processing.
If there was an error while writing, the `onWriteError` method is called.
The exception encountered and the item that was attempted to be written are
provided, so that they can be logged.

The annotations corresponding to this interface are:
Expand Down

0 comments on commit dbb4e21

Please sign in to comment.