Spring中这两个对象ObjectFactory与FactoryBean接口你使用过吗?( 三 )

) autowiringValue;if (autowiringValue instanceof Serializable && requiredType.isInterface()) {autowiringValue = Proxy.newProxyInstance(requiredType.getClassLoader(), new Class[] {requiredType}, new ObjectFactoryDelegatingInvocationHandler(factory));} else {// 进入这里之间调用getObject返回对象return factory.getObject();}}return autowiringValue;}完毕!!!




推荐阅读