摘要: @Test public void test(){ //new UserImpl(); /* ProxyT proxy=new ProxyT(new UserImpl()); proxy.add(); proxy.update();*/ final User user=new UserI... 阅读全文
posted @ 2014-06-23 16:15 清风yi竹 阅读(96) 评论(0) 推荐(0) 编辑
摘要: //用户操作的接口public interface User { public void add(); public void update(); }//用户接口的实现类public class UserImpl implements User { @Override public void ad... 阅读全文
posted @ 2014-06-23 14:46 清风yi竹 阅读(106) 评论(0) 推荐(0) 编辑