首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

spring使用动态署理面向切面编程(AOP) xml

2013-09-17 
spring使用动态代理面向切面编程(AOP) xmlpackage com.test.aopimport org.aspectj.lang.ProceedingJoinP

spring使用动态代理面向切面编程(AOP) xml

package com.test.aop;import org.aspectj.lang.ProceedingJoinPoint;public class MyInterceptor3 {public void beforeMethod() {System.out.println("MyInterceptor3 before mothod!");}public void afterReturningMethod() {System.out.println("MyInterceptor3 afterReturning mothod!");}public void afterThrowingMethod() {System.out.println("MyInterceptor3 afterThrowing mothod!");}public void aroundMethod(ProceedingJoinPoint pjp) throws Throwable {System.out.println("MyInterceptor3 around start mothod!");pjp.proceed();System.out.println("MyInterceptor3 around end mothod!");}}

?

热点排行