History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BATCH-455
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dave Syer
Reporter: Gregory Kick
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Spring Batch

Pass object to ItemWriteListener.afterWrite()

Created: 13/Mar/08 01:22 PM   Updated: 13/Mar/08 05:18 PM
Component/s: Core
Affects Version/s: 1.0.0.m5
Fix Version/s: 1.0.0.rc1

Time Tracking:
Not Specified


 Description  « Hide
It would be useful to have access to the object that was written in an ItemWriteListener. An example usecase would be a listener that logs successfully written items. This follows BATCH-419.

 All   Comments   Work Log   Change History   FishEye   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Gregory Kick - 13/Mar/08 01:22 PM
wrong priority. sorry.

Lucas Ward - 13/Mar/08 01:42 PM
It makes sense to me, since beforeWrite has it, and there's no way to know with the listener afterwards if it was successfull without making your listener stateful, which would be bad. Robert, can you take care of this tomorrow?