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 {
Map var2 = this.bfgInstancesByKey; synchronized(this.bfgInstancesByKey) { 疑惑
最新推荐文章于 2019-12-21 01:33:12 发布