diff --git a/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java b/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java index 23b6c376e..94d1ccd0d 100644 --- a/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java +++ b/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java @@ -147,7 +147,7 @@ public abstract class AbstractJobLauncher implements JobLauncher, * the {@link JobIdentifier} to start the launcher with. * @throws NoSuchJobConfigurationException */ - protected abstract void doStart(JobIdentifier jobIdentifier) + protected abstract void doRun(JobIdentifier jobIdentifier) throws NoSuchJobConfigurationException; /** @@ -173,7 +173,7 @@ public abstract class AbstractJobLauncher implements JobLauncher, } register(jobIdentifier); - doStart(jobIdentifier); + doRun(jobIdentifier); /* * Subclasses have to take care of unregistering the runtimeInformation - diff --git a/execution/src/main/java/org/springframework/batch/execution/bootstrap/TaskExecutorJobLauncher.java b/execution/src/main/java/org/springframework/batch/execution/bootstrap/TaskExecutorJobLauncher.java index f8d59fd05..1b047353b 100644 --- a/execution/src/main/java/org/springframework/batch/execution/bootstrap/TaskExecutorJobLauncher.java +++ b/execution/src/main/java/org/springframework/batch/execution/bootstrap/TaskExecutorJobLauncher.java @@ -96,7 +96,7 @@ public class TaskExecutorJobLauncher extends AbstractJobLauncher implements Appl * * @throws IllegalStateException if JobConfiguration is null. */ - protected void doStart(final JobIdentifier runtimeInformation) { + protected void doRun(final JobIdentifier runtimeInformation) { Assert.state(taskExecutor != null, "TaskExecutor must be provided");