读书人

Spring-AOP 动态署理

发布时间: 2012-10-06 17:34:01 作者: rapoo

Spring--AOP 动态代理
applicationContext.xml:



ProxySubjectBeforeAdvice.java:
package com.sinosoft.module.springaop;import java.lang.reflect.Method;import org.springframework.aop.AfterReturningAdvice;public class ProxySubjectAfterAdvice implements AfterReturningAdvice {public void afterReturning(Object arg0, Method arg1, Object[] arg2,Object arg3) throws Throwable {System.out.println("主体程序执行后 ***** 扔苹果胡 ") ;}}

读书人网 >软件架构设计

热点推荐