Spring 源码之核心加载方法(4) 容器钩子方法
4. postProcessBeanFactory
按照标准修改应用上下文的内部 bean 工厂初始化。
所有 bean definition 都将被加载,但没有 bean 将被实例化。
这允许注册特殊的某些 ApplicationContext 实现中的 BeanPostProcessors 等。
定位: org.springframework.context.support.AbstractApplicationContext#postProcessBeanFactory
1 | protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) { |