<bean id="audience" class="first.Audience"/>
<aop:config>
<aop:aspect ref="audience">
<aop:pointcut id="performance" expression=
"execution(* first.Play.play(..))"/>
<aop:before pointcut-ref="performance" method="takeSeats"/>
<aop:before pointcut-ref="performance" method="turnOffCellPhones"/>
<aop:after-returning pointcut-ref="performance" method="applaud"/>
<aop:after-throwing pointcut-ref="performance" method="demandRefund"/>
</aop:aspect>
</aop:config>
<bean id="around" class="first.AOPAround"/>
<aop:config>
<aop:aspect ref="audience">
<aop:pointcut id="performance11" expression=
"execution(* first.Play.play(..))"/>
<aop:around pointcut-ref="performance11" method="watch()"/>
</aop:aspect>
</aop:config>
</beans>
<aop:config>
<aop:aspect ref="audience">
<aop:pointcut id="performance" expression=
"execution(* first.Play.play(..))"/>
<aop:before pointcut-ref="performance" method="takeSeats"/>
<aop:before pointcut-ref="performance" method="turnOffCellPhones"/>
<aop:after-returning pointcut-ref="performance" method="applaud"/>
<aop:after-throwing pointcut-ref="performance" method="demandRefund"/>
</aop:aspect>
</aop:config>
<bean id="around" class="first.AOPAround"/>
<aop:config>
<aop:aspect ref="audience">
<aop:pointcut id="performance11" expression=
"execution(* first.Play.play(..))"/>
<aop:around pointcut-ref="performance11" method="watch()"/>
</aop:aspect>
</aop:config>
</beans>
解决方案 »
- ***name怎么访问不到
- 一个primefaces中p:commandButton组件无法以ajax方式调用bean的问题
- 配置文件的问题
- eclipse3.2 ant问题关于struts2的struts.xml无辜消失
- 关于用struts框架验证的问题
- 求视频体积压缩方法------尽最大可能不减少画面质量
- ~~~~~~~~~~~~~~~~~~~~~~~~跪求基于WEB的客户端程序解决方案
- 关于EJB,高手关注
- Tomcat4.1.29配置了数据源以后无法启动的问题。
- 新手问题:JDK和SDK的区别?
- javamail,配置163邮箱,报554错误,求助
- java现在有两个list类型的数据,如何进行字符串匹配和替换
try{
System.out.println("Now Linkin park will sing a song.....");
long start=System.currentTimeMillis();
joinpoint.proceed();
long end=System.currentTimeMillis();
System.out.println("joinpoint.proceed() tock "+(end-start));
}catch(Throwable t){
System.out.println("Boo! We want our money back!");
}
}