零聲-C++ Design Pattern
? ? ? ? ? ? ? ? ? ?//其intercept方法為所有增強方法的統(tǒng)一入口,這個類來自Spring
? ? ? ? ? ? ? ? ? ?Object proxy = createProxy(
? ? ? ? ? ? ? ? ? ? ? ? ? ?bean.getClass(), beanName, specificInterceptors, new SingletonTargetSource(bean));
? ? ? ? ? ? ? ? ? ?this.proxyTypes.put(cacheKey, proxy.getClass());
? ? ? ? ? ? ? ? ? ?return proxy;
? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?//緩存判斷結(jié)果
? ? ? ? ? ? ? ?this.advisedBeans.put(cacheKey, Boolean.FALSE);
? ? ? ? ? ? ? ?return bean;
? ?}
標(biāo)簽: