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
This commit is contained in:
dsyer
2007-08-28 10:51:53 +00:00
parent fd3d6d6650
commit 3972010e9a

View File

@@ -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.