Class JsrBeanScopeBeanFactoryPostProcessor
- java.lang.Object
- org.springframework.batch.core.jsr.partition.support.JsrBeanScopeBeanFactoryPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
public class JsrBeanScopeBeanFactoryPostProcessor extends java.lang.Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
In order for property resolution to occur correctly within the scope of a JSR-352 batch job, initialization of job level artifacts must occur on the same thread that the job is executing. To allow this to occur,PartitionMapper
,PartitionReducer
, andPartitionAnalyzer
are all configured to lazy initialization (equivalent to lazy-init="true").- Since:
- 3.0
- Author:
- Michael Minella
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsrBeanScopeBeanFactoryPostProcessor.JobLevelBeanLazyInitializer
Looks for beans that may have dependencies that need to be lazily initialized and configures the correspondingBeanDefinition
accordingly.
Constructor Summary
Constructors Constructor Description JsrBeanScopeBeanFactoryPostProcessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Method Detail
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException