@ -679,6 +679,13 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -679,6 +679,13 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
* /
protected void invokeBeanFactoryPostProcessors ( ConfigurableListableBeanFactory beanFactory ) {
PostProcessorRegistrationDelegate . invokeBeanFactoryPostProcessors ( beanFactory , getBeanFactoryPostProcessors ( ) ) ;
// Detect a LoadTimeWeaver and prepare for weaving, if found in the meantime
// (e.g. through an @Bean method registered by ConfigurationClassPostProcessor)
if ( beanFactory . getTempClassLoader ( ) = = null & & beanFactory . containsBean ( LOAD_TIME_WEAVER_BEAN_NAME ) ) {
beanFactory . addBeanPostProcessor ( new LoadTimeWeaverAwareProcessor ( beanFactory ) ) ;
beanFactory . setTempClassLoader ( new ContextTypeMatchClassLoader ( beanFactory . getBeanClassLoader ( ) ) ) ;
}
}
/ * *