Make StepScope a BeanFactoryPostProcessor.

BATCH-88: StatisticsProvider is a leaky abstraction
http://opensource.atlassian.com/projects/spring/browse/BATCH-88
This commit is contained in:
dsyer
2007-08-24 10:59:19 +00:00
parent a68146df4d
commit e35a35f4bc
4 changed files with 93 additions and 49 deletions

View File

@@ -9,16 +9,9 @@
<import resource="data-source-context.xml" />
<import resource="data-source-context-init.xml" />
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
<property name="scopes">
<map>
<entry key="step">
<bean class="org.springframework.batch.execution.scope.StepScope" />
</entry>
</map>
</property>
</bean>
<!-- register the step scope with the application context -->
<bean class="org.springframework.batch.execution.scope.StepScope" />
<bean id="jobExecutorFacade" class="org.springframework.batch.execution.facade.SimpleJobExecutorFacade">
<property name="jobRepository" ref="simpleJobRepository" />