1 22 package org.jboss.test.aop.annotated; 23 24 import org.jboss.aop.joinpoint.Invocation; 25 import org.jboss.aop.pointcut.CFlowStack; 26 27 33 public class CFlowAspect 34 { 35 public static int cflowAccess; 36 37 40 public static CFlowStack cf1And2Stack; 41 42 45 public static CFlowStack cfNot1And2Stack; 46 47 48 51 public Object cflowAdvice(Invocation invocation) throws Throwable 52 { 53 System.out.println("CFlowAspect.cflowAdvice"); 54 cflowAccess++; 55 return invocation.invokeNext(); 56 } 57 58 61 public Object dynamicCFlowAdvice(Invocation invocation) throws Throwable 62 { 63 System.out.println("CFlowAspect.dynamicCFlowAdvice"); 64 cflowAccess++; 65 return invocation.invokeNext(); 66 } 67 } 68 | Popular Tags |