【文件属性】:
文件名称:静态代理 动态代理 jdk Proxy
文件大小:20KB
文件格式:ZIP
更新时间:2017-09-05 03:00:45
动态代理 静态代理 AOP
自己写的小例子,供学习参考。
public class StaticProxy implements Hello{
private HelloSpecker helloSpecker;
public StaticProxy() {
}
public StaticProxy(HelloSpecker helloSpecker) {
super();
this.helloSpecker = helloSpecker;
}
@Override
public void hello(String say) {
System.out.println("执行前");
helloSpecker.hello(say);
System.out.println("执行后");
}
}
【文件预览】:
静态代理staticProxy.zip
动态代理AOP.zip