mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Freeze configuration before invoking MBDPP instances
This commit updates refresh for AOT processing so that the configuration is frozen before invoking MergedBeanDefinitionPostProcessor instances. This makes sure that post-processed MergedBeanDefinitions are kept in cache and not lost if a component attempts to clear the metadata cache. Closes gh-28941
This commit is contained in:
+1
@@ -406,6 +406,7 @@ public class GenericApplicationContext extends AbstractApplicationContext implem
|
||||
prepareBeanFactory(this.beanFactory);
|
||||
postProcessBeanFactory(this.beanFactory);
|
||||
invokeBeanFactoryPostProcessors(this.beanFactory);
|
||||
this.beanFactory.freezeConfiguration();
|
||||
PostProcessorRegistrationDelegate.invokeMergedBeanDefinitionPostProcessors(this.beanFactory);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user