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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user