80818283848586878889
if (proxyFactory != null) { return; } // 如果传入的工厂为空将采用默认的工厂模式 if (StringUtil.isEmptyAndNull(factoryName)) { proxyFactory = new DefaultProxyFactory(); return; } proxyFactory = (ProxyFactory)RefObjectUtil.loadClass(factoryName); }
91929394959697
/** *获取指定全局Proxy工厂的实现类 * @return */ public static ProxyFactory getProxyFactory() { return proxyFactory == null ? new DefaultProxyFactory() : proxyFactory; }