Map var2 = this.bfgInstancesByKey; synchronized(this.bfgInstancesByKey) { 疑惑

xiaoxiao2025-07-18  6

org.springframework.beans.factory.access.SingletonBeanFactoryLocator#useBeanFactory public BeanFactoryReference useBeanFactory(String factoryKey) throws BeansException { Map var2 = this.bfgInstancesByKey; synchronized(this.bfgInstancesByKey) {//为什么重新定义var2变量,下面又没有使用 SingletonBeanFactoryLocator.BeanFactoryGroup bfg = (SingletonBeanFactoryLocator.BeanFactoryGroup)this.bfgInstancesByKey.get(this.resourceLocation); BeanFactory beanFactory; if (bfg != null) { bfg.refCount++; } else {
转载请注明原文地址: https://www.6miu.com/read-5033290.html

最新回复(0)