From 6eb888313980684a94b679eb4ee455881ff46ec3 Mon Sep 17 00:00:00 2001 From: lucasward Date: Wed, 27 Feb 2008 03:27:39 +0000 Subject: [PATCH] BATCH-392:removed saveExecutionContext from step (it's handled at a lower level now) --- .../support/CommandLineJobRunner.java | 7 +- .../JobRegistryBeanPostProcessor.java | 7 +- .../batch/execution/job/AbstractJob.java | 139 +++++++++++++++++ .../execution/job/{simple => }/SimpleJob.java | 5 +- .../batch/execution/job/simple/package.html | 7 - .../batch/execution/launch/JobLauncher.java | 3 +- .../execution/launch/SimpleJobLauncher.java | 5 +- .../repository/SimpleJobRepository.java | 7 +- .../batch/execution/step/AbstractStep.java | 64 +++++++- .../execution/step/ItemOrientedStep.java | 2 +- .../batch/execution/step/TaskletStep.java | 63 +++++++- .../SimpleExportedJobLauncherTests.java | 4 +- .../JobRegistryBeanPostProcessorTests.java | 2 +- .../configuration/MapJobRegistryTests.java | 4 +- .../batch/execution/job/AbstractJobTests.java | 115 ++++++++++++++ .../batch/execution/job/JobSupport.java | 146 ++++++++++++++++++ .../job/{simple => }/SimpleJobTests.java | 3 +- .../launch/SimpleJobLauncherTests.java | 2 +- .../execution/launch/SimpleJobTests.java | 2 +- .../SimpleJobRepositoryIntegrationTests.java | 2 +- .../repository/SimpleJobRepositoryTests.java | 4 +- .../repository/dao/AbstractJobDaoTests.java | 2 +- .../repository/dao/AbstractStepDaoTests.java | 4 +- .../repository/dao/JdbcJobDaoQueryTests.java | 2 +- .../dao/JdbcStepDaoPrefixTests.java | 4 +- .../repository/dao/MapJobDaoTests.java | 2 +- .../repository/dao/MapStepDaoTests.java | 4 +- .../BatchResourceFactoryBeanTests.java | 4 +- .../scope/SimpleStepContextTests.java | 2 +- .../batch/execution/scope/StepScopeTests.java | 4 +- .../execution/step/ItemOrientedStepTests.java | 7 +- .../batch/execution/step/StepSupport.java | 117 ++++++++++++++ .../execution/step/TaskletStepTests.java | 3 +- .../StepExecutorInterruptionTests.java | 2 +- .../src/test/resources/job-configuration.xml | 2 +- .../batch/execution/bootstrap/support/job.xml | 2 +- .../execution/configuration/test-context.xml | 10 +- .../resources/simple-container-definition.xml | 3 +- 38 files changed, 691 insertions(+), 76 deletions(-) create mode 100644 spring-batch-execution/src/main/java/org/springframework/batch/execution/job/AbstractJob.java rename spring-batch-execution/src/main/java/org/springframework/batch/execution/job/{simple => }/SimpleJob.java (97%) delete mode 100644 spring-batch-execution/src/main/java/org/springframework/batch/execution/job/simple/package.html create mode 100644 spring-batch-execution/src/test/java/org/springframework/batch/execution/job/AbstractJobTests.java create mode 100644 spring-batch-execution/src/test/java/org/springframework/batch/execution/job/JobSupport.java rename spring-batch-execution/src/test/java/org/springframework/batch/execution/job/{simple => }/SimpleJobTests.java (98%) create mode 100644 spring-batch-execution/src/test/java/org/springframework/batch/execution/step/StepSupport.java diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/CommandLineJobRunner.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/CommandLineJobRunner.java index abb738329..ad313b091 100644 --- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/CommandLineJobRunner.java +++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/CommandLineJobRunner.java @@ -20,7 +20,6 @@ import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.batch.core.domain.Job; -import org.springframework.batch.core.domain.JobSupport; import org.springframework.batch.core.domain.JobExecution; import org.springframework.batch.core.domain.JobParameters; import org.springframework.batch.core.repository.JobLocator; @@ -81,7 +80,7 @@ import org.springframework.util.StringUtils; * *

*