Proxy代理代码

package com.bjsunyuhuan.test001;

public class Proxy implements NetWork{  private NetWork network;  public Proxy(NetWork network){   this.network=network;  }   public void check(){    System.out.println("检查用户是否合法");   }    public void borowse() {          this.check();          this.network.borowse();           }

}

posted @ 2017-08-03 14:17  超重语言  阅读(213)  评论(0编辑  收藏  举报