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.