jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 17 forks source link

Give app (ChunkListener?) control at end of chunk step, but before close() #91

Open follis opened 4 years ago

follis commented 4 years ago

Originally opened as bug 7374 by ScottKurz

--------------Original Comment History---------------------------- Comment from = ScottKurz on 2015-11-02 14:46:03 +0000

The use case here is to write some trailer/footer record(s).

Today of course this could be done in Writer.close().

We could preserve that option and offer a bit more cleanly separated one by having ChunkListener#endOfStep (or beforeClose, or whatever we call it). This could be called in the close tran, before reader/writer close().