Class ThreadLocalClassloaderBeanPostProcessor
- java.lang.Object
- org.springframework.batch.core.jsr.configuration.support.ThreadLocalClassloaderBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
,org.springframework.core.Ordered
,org.springframework.core.PriorityOrdered
public class ThreadLocalClassloaderBeanPostProcessor extends java.lang.Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.PriorityOrdered
After theBeanFactory
is created, this post processor will evaluate to see if any of the beans referenced from a job definition (as defined by JSR-352) point to class names instead of bean names. If this is the case, a newBeanDefinition
is added with the name of the class as the bean name.- Since:
- 3.0
- Author:
- Michael Minella
Constructor Summary
Constructors Constructor Description ThreadLocalClassloaderBeanPostProcessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
Sets thisBeanFactoryPostProcessor
to the lowest precedence so that it is executed as late as possible in the chain ofBeanFactoryPostProcessor
svoid
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
getOrder
public int getOrder()
Sets thisBeanFactoryPostProcessor
to the lowest precedence so that it is executed as late as possible in the chain ofBeanFactoryPostProcessor
s- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered