InitializingTasklet, DisposableTasklet [BATCH-106] #3469
Labels
in: core
status: declined
Features that we don't intend to implement or Bug reports that are invalid or missing enough details
type: feature
Milestone
Douglas C. Kaminsky opened BATCH-106 and commented
Request for 2 new interfaces to mirror Spring functionality:
InitializingTasklet: along the lines InitializingBean, defines a contract for some sort of init method which is called once at the beginning of the Step before execute is called for the first time
DisposableTasklet: along the lines of DisposableBean, defines a contract for some sort of destroy method which is called once at the end of the Step after execute is called for the last time
These should be auto-wired via reflection so that if I define a Tasklet which implements either or both of these interfaces, the appropriate method will be called automatically without further effort within the default executors.
Sample use cases: Opening/closing file handles, performing file copy/move/rename operations at the beginning or end of some processing
Existing solutions so far seem insufficient to handle this -
Possibly related issue: BATCH-45 (POJO adaptor)
Affects: 1.0-m2
The text was updated successfully, but these errors were encountered: