This is for Struts 1.
My application inherits from org.apache.struts.action.Action,
and override
execute().
- cflow pointcut aims at the superclass:
@Pointcut("cflow (execute(* com.myPkg1.myPkg2.myPkg3.BaseAction.execute(..)))")public void cflowOps() {}
- during this code flow, captures all application’s method invocations:
@Pointcut("execution(* com.myPk1..*(..))")public void withinCflowOps() {}
Put StrutsPerfspyAspect
into an AOP.xml, and put this AOP.xml under A.war/WEB-INFO.
No comments:
Post a Comment