OPEN - issue BATCH-304: BatchCommandLineLauncher simplified and rename

http://jira.springframework.org/browse/BATCH-304

Wrong name for job launcher class in config
This commit is contained in:
dsyer
2008-01-22 21:01:11 +00:00
parent 1c6bbfc85a
commit 9cb2437e7e
2 changed files with 2 additions and 3 deletions

View File

@@ -217,8 +217,7 @@ public class SimpleCommandLineJobRunner {
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE, false);
Assert.state(launcher != null, "JobLauncher must be provided in the parent ApplicationContext"
+ ", check the context created within classpath*:beanRefContext.xml to ensure a JobLauncher"
+ " is declared");
+ ", check the context to ensure a JobLauncher is declared");
if (jobName == null) {
String[] names = context.getBeanNamesForType(Job.class);

View File

@@ -14,7 +14,7 @@
<bean class="org.springframework.batch.execution.bootstrap.support.SimpleJvmExitCodeMapper" />
<bean
class="org.springframework.batch.execution.bootstrap.support.BatchCommandLineLauncherTests$StubSystemExiter" />
class="org.springframework.batch.execution.bootstrap.support.SimpleCommandLineJobRunnerTests$StubSystemExiter" />
<bean id="test-job" class="org.springframework.batch.core.domain.Job">
<property name="steps">