Internal API change for StepExecutors
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.batch.execution.step.simple;
|
||||
|
||||
import org.springframework.batch.core.domain.StepExecution;
|
||||
import org.springframework.batch.core.domain.StepInstance;
|
||||
import org.springframework.batch.core.tasklet.Tasklet;
|
||||
import org.springframework.batch.core.tasklet.Recoverable;
|
||||
@@ -51,7 +52,7 @@ public class DefaultStepExecutor extends SimpleStepExecutor {
|
||||
* @see org.springframework.batch.execution.step.simple.SimpleStepExecutor#doTaskletProcessing(org.springframework.batch.core.tasklet.Tasklet,
|
||||
* org.springframework.batch.core.domain.StepInstance)
|
||||
*/
|
||||
protected ExitStatus doTaskletProcessing(Tasklet module, final StepInstance step) throws Exception {
|
||||
protected ExitStatus doTaskletProcessing(Tasklet module, final StepExecution step) throws Exception {
|
||||
|
||||
ExitStatus exitStatus = ExitStatus.CONTINUABLE;
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ public class SimpleStepExecutor implements StepExecutor {
|
||||
// check for interruption before each item as well
|
||||
interruptionPolicy.checkInterrupted(context);
|
||||
ExitStatus exitStatus = doTaskletProcessing(configuration
|
||||
.getTasklet(), stepExecution.getStep());
|
||||
.getTasklet(), stepExecution);
|
||||
stepExecution.incrementTaskCount();
|
||||
// check for interruption after each item as well
|
||||
interruptionPolicy.checkInterrupted(context);
|
||||
@@ -352,13 +352,13 @@ public class SimpleStepExecutor implements StepExecutor {
|
||||
*
|
||||
* @param tasklet
|
||||
* the unit of business logic to execute
|
||||
* @param step
|
||||
* @param stepExecution
|
||||
* the current step
|
||||
* @return boolean if there is more processing to do
|
||||
* @throws Exception
|
||||
* if there is an error
|
||||
*/
|
||||
protected ExitStatus doTaskletProcessing(Tasklet tasklet, StepInstance step)
|
||||
protected ExitStatus doTaskletProcessing(Tasklet tasklet, StepExecution stepExecution)
|
||||
throws Exception {
|
||||
return tasklet.execute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user