proxy设计模式
proxy设计模式实例
public interface Myinterface{public int getId();}
public class business implements Myinterface{....}
public class Myproxy implements Myinterface{
private Myinterface myinterface;
public Myproxy(Myinterface myinterface){this.myinterface=myinterface;}
public int getId(){
before();
myinterface.getId();
after();
}
}


浙公网安备 33010602011771号