摘要: 1 package proxy.dynamicproxy; 2 3 import java.lang.reflect.InvocationHandler; 4 import java.lang.reflect.Method; 5 import java.lang.reflect.Proxy; 6 7 8 /** 9 * 需要实现InvocationHandler接口,内... 阅读全文
posted @ 2019-02-12 18:44 cnblogs_z_s 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 1 package proxy.staticproxy; 2 3 public interface IStar { 4 5 public void sing(); 6 } 1 package proxy.staticproxy; 2 3 public class RealStar implements IStar{ 4 @Override 5 public vo... 阅读全文
posted @ 2019-02-12 18:41 cnblogs_z_s 阅读(179) 评论(0) 推荐(0) 编辑