From 10fd69d07a43a5baf4dd405c3d586fbcb59076a0 Mon Sep 17 00:00:00 2001 From: dsyer Date: Tue, 22 Jan 2008 16:13:06 +0000 Subject: [PATCH] OPEN - issue BATCH-304: BatchCommandLineLauncher simplified and rename http://jira.springframework.org/browse/BATCH-304 Polish documentation --- .../support/SimpleCommandLineJobDispatcher.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/SimpleCommandLineJobDispatcher.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/SimpleCommandLineJobDispatcher.java index 11c3ef5da..19955ac39 100644 --- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/SimpleCommandLineJobDispatcher.java +++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/bootstrap/support/SimpleCommandLineJobDispatcher.java @@ -28,6 +28,7 @@ import org.springframework.batch.execution.runtime.ScheduledJobIdentifierFactory import org.springframework.batch.execution.step.simple.SimpleExitCodeExceptionClassifier; import org.springframework.batch.repeat.ExitStatus; import org.springframework.beans.factory.access.BeanFactoryLocator; +import org.springframework.beans.factory.access.SingletonBeanFactoryLocator; import org.springframework.beans.factory.config.AutowireCapableBeanFactory; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.access.ContextSingletonBeanFactoryLocator; @@ -276,11 +277,11 @@ public class SimpleCommandLineJobDispatcher { * JobConfiguration to use *
  • -Djob.name: job name to be passed to the {@link JobLauncher} *
  • -Dbatch.execution.environment.key: the key in beanRefContext.xml - * used to load the execution environment (mandatory if bean.ref.context is - * specified). - *
  • -Dbean.ref.context: an alternative location for beanRefContext.xml - * (optional, default is to only use the context specified in the - * job.configuration.path).
  • + * used to load the execution environment which will be the parent context + * for the job execution (mandatory if -Dbean.ref.context is specified). + *
  • -Dbean.ref.context: the location for beanRefContext.xml (optional, + * default is to only use the context specified in the + * job.configuration.path) (@see {@link SingletonBeanFactoryLocator}).
  • * */ public static void main(String[] args) {