From aeab6a219f0c9ab9d94b001ea47d5433275ab80f Mon Sep 17 00:00:00 2001 From: lucasward Date: Mon, 14 Jan 2008 22:58:24 +0000 Subject: [PATCH] BATCH-273: JobConfiguration renamed to Job --- .../support/BatchCommandLineLauncher.java | 14 +-- .../bootstrap/support/ExitCodeMapper.java | 6 +- .../support/ExportedJobLauncher.java | 2 +- .../support/SimpleJvmExitCodeMapper.java | 8 +- ...java => JobRegistryBeanPostProcessor.java} | 38 ++++---- ...ationRegistry.java => MapJobRegistry.java} | 26 ++--- .../execution/job/DefaultJobExecutor.java | 46 ++++----- .../execution/launch/JobExecutorFacade.java | 12 +-- .../batch/execution/launch/JobLauncher.java | 12 +-- .../launch/SimpleJobExecutorFacade.java | 56 +++++------ .../execution/launch/SimpleJobLauncher.java | 78 +++++++-------- .../repository/SimpleJobRepository.java | 94 +++++++++---------- ...epConfiguration.java => AbstractStep.java} | 12 +-- .../PrototypeBeanStepExecutorFactory.java | 20 ++-- .../step/RepeatOperationsHolder.java | 4 +- ...uration.java => RepeatOperationsStep.java} | 6 +- ...StepConfiguration.java => SimpleStep.java} | 12 +-- .../step/simple/SimpleStepExecutor.java | 48 +++++----- .../simple/SimpleStepExecutorFactory.java | 20 ++-- .../support/SimpleJvmExitCodeMapperTests.java | 16 ++-- .../bootstrap/support/StubJobLauncher.java | 8 +- ...=> JobRegistryBeanPostProcessorTests.java} | 50 +++++----- ...tryTests.java => MapJobRegistryTests.java} | 44 ++++----- .../job/DefaultJobExecutorTests.java | 38 ++++---- .../execution/launch/InterruptJobTests.java | 16 ++-- .../launch/SimpleJobExecutorFacadeTests.java | 26 ++--- .../launch/SimpleJobLauncherTests.java | 12 +-- .../execution/launch/SimpleJobTests.java | 22 ++--- .../launch/TaskExecutorJobLauncherTests.java | 16 ++-- .../repository/SimpleJobRepositoryTests.java | 28 +++--- .../dao/JdbcStepDaoPrefixTests.java | 2 +- ...PrototypeBeanStepExecutorFactoryTests.java | 10 +- .../step/simple/DefaultStepExecutorTests.java | 14 +-- .../step/simple/JobRepositorySupport.java | 4 +- ...ts.java => RepeatOperationsStepTests.java} | 10 +- .../simple/SimpleStepConfigurationTests.java | 22 ++--- .../SimpleStepExecutorFactoryTests.java | 14 +-- .../simple/StepExecutorInterruptionTests.java | 14 +-- .../src/test/resources/job-configuration.xml | 6 +- .../test-batch-environment-no-launcher.xml | 2 +- .../support/test-batch-environment.xml | 2 +- .../execution/configuration/test-context.xml | 16 ++-- .../resources/simple-container-definition.xml | 8 +- 43 files changed, 457 insertions(+), 457 deletions(-) rename spring-batch-execution/src/main/java/org/springframework/batch/execution/configuration/{JobConfigurationRegistryBeanPostProcessor.java => JobRegistryBeanPostProcessor.java} (65%) rename spring-batch-execution/src/main/java/org/springframework/batch/execution/configuration/{MapJobConfigurationRegistry.java => MapJobRegistry.java} (68%) rename spring-batch-execution/src/main/java/org/springframework/batch/execution/step/{AbstractStepConfiguration.java => AbstractStep.java} (77%) rename spring-batch-execution/src/main/java/org/springframework/batch/execution/step/{RepeatOperationsStepConfiguration.java => RepeatOperationsStep.java} (87%) rename spring-batch-execution/src/main/java/org/springframework/batch/execution/step/{SimpleStepConfiguration.java => SimpleStep.java} (76%) rename spring-batch-execution/src/test/java/org/springframework/batch/execution/configuration/{JobConfigurationRegistryBeanPostProcessorTests.java => JobRegistryBeanPostProcessorTests.java} (69%) rename spring-batch-execution/src/test/java/org/springframework/batch/execution/configuration/{MapJobConfigurationRegistryTests.java => MapJobRegistryTests.java} (56%) rename spring-batch-execution/src/test/java/org/springframework/batch/execution/step/simple/{RepeatOperationsStepConfigurationTests.java => RepeatOperationsStepTests.java} (81%) diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/BatchCommandLineLauncher.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/BatchCommandLineLauncher.java index e9d7aaeb8..0c5c11026 100644 --- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/BatchCommandLineLauncher.java +++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/BatchCommandLineLauncher.java @@ -18,7 +18,7 @@ package org.springframework.batch.execution.bootstrap.support; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.batch.core.configuration.NoSuchJobConfigurationException; +import org.springframework.batch.core.domain.NoSuchJobException; import org.springframework.batch.core.executor.ExitCodeExceptionClassifier; import org.springframework.batch.execution.launch.JobLauncher; import org.springframework.batch.execution.step.simple.SimpleExitCodeExceptionClassifier; @@ -45,14 +45,14 @@ import org.springframework.util.Assert; * *

* With any launch of a batch job within Spring Batch, a minimum of two contexts - * must be loaded. One is the context containing the JobConfiguration, the other + * must be loaded. One is the context containing the Job, the other * contains the 'Execution Environment'. That is, the JobExecutorFacade (which * contains all the executors, plus the repository), the JobIdentifierFactory, * and a normal JobLauncher. This command line launcher loads these application * contexts by first loading the execution environment context via a * {@link ContextSingletonBeanFactoryLocator}, which will search for the * default key from classpath*:beanRefContext.xml to return the context. This - * will then be used as the parent to the JobConfiguration context. All required + * will then be used as the parent to the Job context. All required * dependencies of the launcher will then be satisfied by autowiring by type * from the combined application context. Default values are provided for all * fields except the JobLauncher. Therefore, if autowiring fails to set it (it @@ -76,7 +76,7 @@ import org.springframework.util.Assert; * method are optional, VM arguments are used: * *