首页 > TAG信息列表 > produceCloth

Java反射——实现动态代理

1.Java静态代理举例: 代理类和被代理类在编译期间就已经确定下来了 1 interface ClothFactory{ 2 void produceCloth(); 3 } 4 5 class ProxyClothFactory implements ClothFactory{ 6 private ClothFactory factory; 7 public ProxyClothFactory(ClothFactor