BATCH-1034: cleaned up registration of StepScope

This commit is contained in:
trisberg
2009-02-12 20:58:00 +00:00
parent b70568ea18
commit a3548b4190

View File

@@ -48,7 +48,6 @@ public class CoreNamespaceUtils {
if (!foundStepScope) {
BeanDefinitionBuilder stepScopeBuilder =
BeanDefinitionBuilder.genericBeanDefinition(STEP_SCOPE_PROCESSOR_CLASS_NAME);
stepScopeBuilder.setRole(BeanDefinition.ROLE_INFRASTRUCTURE);
AbstractBeanDefinition abd = stepScopeBuilder.getBeanDefinition();
abd.setRole(BeanDefinition.ROLE_INFRASTRUCTURE);
abd.setSource(source);