@Override
	public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
		if (beanFactory instanceof DefaultListableBeanFactory) {
			this.beanFactory = (DefaultListableBeanFactory) beanFactory;
		}
		super.setBeanFactory(beanFactory);
	}
JobRegistryBeanPostProcessor that processes batch job from the job module.

@author Ilayaperumal Gopinathan
@author Michael Minella
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/BatchJobRegistryBeanPostProcessor.java