java动态代理的实现
摘要:
1.首先定义一个委托类的接口Subject,应该必须是接口,而不能是抽象类。因为Proxy.newProxyInstance方法的第二个参数需要委托类实现的接口。 public static Object newProxyInstance(ClassLoader loader, Class<?>[] 阅读全文
posted @ 2017-08-09 16:48 芝麻_糊 阅读(370) 评论(0) 推荐(0) 编辑