Package org.springframework.batch.core.step.tasklet

Interfaces and generic implementations of tasklet concerns.


Interface Summary
Tasklet Interface for encapsulating processing logic that is not natural to split into read-(transform)-write phases, such as invoking a system command or a stored procedure.
Since the batch framework has no visibility inside the Tasklet.execute() method, developers should consider implementing StepExecutionListener and check the StepExecution.isTerminateOnly() value for long lasting processes to enable prompt termination of processing on user request.
It is expected the read-(transform)-write separation will be appropriate for most cases and developers should implement ItemReader and ItemWriter interfaces then (typically extending or composing provided implementations).

Class Summary
TaskletAdapter A Tasklet that wraps a method in a POJO.
TaskletStep A Step that executes a Tasklet directly.

Package org.springframework.batch.core.step.tasklet Description

Interfaces and generic implementations of tasklet concerns.

Copyright © 2008 SpringSource. All Rights Reserved.