Object proxy3=Proxy.newInstance(target.getClass().getClassLoader(),
target.getClass.getInstance(),
new InvocationHandler(){
throws Theowable{
advice.beforeMethod(method);
Object reval=method.invoke(target,args);
adviceafterMethod(method);
return reval;
}
}
);
我要进黑马,哈哈哈 |