From 3972010e9aeedc2b34abbd49b39022da01355e99 Mon Sep 17 00:00:00 2001 From: dsyer Date: Tue, 28 Aug 2007 10:51:53 +0000 Subject: [PATCH] The custom editor configurer needs to be added to the job configuration. Also the step scope registration OPEN - issue BATCH-115: (some) samples launched from command line don't work http://opensource.atlassian.com/projects/spring/browse/BATCH-115 --- .../batch/execution/scope/StepScope.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/execution/src/main/java/org/springframework/batch/execution/scope/StepScope.java b/execution/src/main/java/org/springframework/batch/execution/scope/StepScope.java index 538f30403..5df676d80 100644 --- a/execution/src/main/java/org/springframework/batch/execution/scope/StepScope.java +++ b/execution/src/main/java/org/springframework/batch/execution/scope/StepScope.java @@ -20,6 +20,7 @@ import org.springframework.beans.factory.ObjectFactory; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.beans.factory.config.Scope; +import org.springframework.core.Ordered; /** * Scope for step context. Objects in this scope with <aop:scoped-proxy/> @@ -30,7 +31,17 @@ import org.springframework.beans.factory.config.Scope; * */ public class StepScope implements Scope, - BeanFactoryPostProcessor { + BeanFactoryPostProcessor, Ordered { + + private int order = Ordered.LOWEST_PRECEDENCE; + + public void setOrder(int order) { + this.order = order; + } + + public int getOrder() { + return order; + } /** * Context key for clients to use for conversation identifier.