mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
Merged bean definitions are now cached early and selectively evicted after post-processing and before actual bean creation
Issue: SPR-12236
This commit is contained in:
+4
@@ -179,6 +179,10 @@ class PostProcessorRegistrationDelegate {
|
||||
nonOrderedPostProcessors.add(beanFactory.getBean(postProcessorName, BeanFactoryPostProcessor.class));
|
||||
}
|
||||
invokeBeanFactoryPostProcessors(nonOrderedPostProcessors, beanFactory);
|
||||
|
||||
// Clear cached merged bean definitions since the post-processors might have
|
||||
// modified the original metadata, e.g. replacing placeholders in values...
|
||||
beanFactory.clearMetadataCache();
|
||||
}
|
||||
|
||||
public static void registerBeanPostProcessors(
|
||||
|
||||
Reference in New Issue
Block a user