1 8 package test.pointcutexpression; 9 10 import org.codehaus.aspectwerkz.definition.Pointcut; 11 import org.codehaus.aspectwerkz.definition.Pointcut; 12 import org.codehaus.aspectwerkz.joinpoint.JoinPoint; 13 14 18 public class TestAspect { 19 22 Pointcut A; 23 24 27 Pointcut B; 28 29 32 Pointcut C; 33 34 37 Pointcut D; 38 39 42 Pointcut E; 43 44 47 Pointcut F; 48 49 52 Pointcut G; 53 54 57 Pointcut H; 58 59 62 Pointcut I; 63 64 67 Pointcut J; 68 69 72 Pointcut K; 73 74 77 Pointcut L; 78 79 82 Pointcut M; 83 84 87 Pointcut N; 88 89 92 Pointcut O; 93 94 97 public Object advice1(final JoinPoint joinPoint) throws Throwable { 98 PointcutExpressionTest.log("before1 "); 99 final Object result = joinPoint.proceed(); 100 PointcutExpressionTest.log("after1 "); 101 return result; 102 } 103 104 107 public Object advice2(final JoinPoint joinPoint) throws Throwable { 108 PointcutExpressionTest.log("before1 "); 109 final Object result = joinPoint.proceed(); 110 PointcutExpressionTest.log("after1 "); 111 return result; 112 } 113 114 117 public Object advice3(final JoinPoint joinPoint) throws Throwable { 118 PointcutExpressionTest.log("before1 "); 119 final Object result = joinPoint.proceed(); 120 PointcutExpressionTest.log("after1 "); 121 return result; 122 } 123 124 127 public Object advice4(final JoinPoint joinPoint) throws Throwable { 128 PointcutExpressionTest.log("before1 "); 129 final Object result = joinPoint.proceed(); 130 PointcutExpressionTest.log("after1 "); 131 return result; 132 } 133 134 137 public Object advice5(final JoinPoint joinPoint) throws Throwable { 138 PointcutExpressionTest.log("before1 "); 139 final Object result = joinPoint.proceed(); 140 PointcutExpressionTest.log("after1 "); 141 return result; 142 } 143 144 147 public Object advice6(final JoinPoint joinPoint) throws Throwable { 148 PointcutExpressionTest.log("before1 "); 149 final Object result = joinPoint.proceed(); 150 PointcutExpressionTest.log("after1 "); 151 return result; 152 } 153 } | Popular Tags |