领测软件测试网
6qJ@wj;Vr0lBXM2qE*@0p(s'b-M+TInvocationHandler handler = new LogHandler(businessImp);
$Ay0^1y6g@$C+Q软件测试技术网#S
b"j1aQ.HeLBusinessInterface proxy = (BusinessInterface) Proxy.newProxyInstance(
BYFw$] h(OL businessImp.getClass().getClassLoader(),
%gX&vB\(e businessImp.getClass().getInterfaces(),
软件测试技术网q'iE[Ij handler);
S3wsd
XX"u({];r7Rtproxy.processBusiness();
软件测试技术网2F!Rp6[
E*q
Yh!l;{'La8`@Z)K 程序输出如下:
软件测试技术网%|tJ
b9~'_hw软件测试技术网xhk