1 22 package org.jboss.test.aop.precedence; 23 24 import org.jboss.aop.joinpoint.Invocation; 25 26 31 public class TestAspect 32 { 33 public Object advice(Invocation invocation)throws Throwable 34 { 35 System.out.println("TestAspect.advice"); 36 Interceptions.add("TestAspect.advice"); 37 return invocation.invokeNext(); 38 39 } 40 41 public Object advice2(Invocation invocation)throws Throwable 42 { 43 System.out.println("TestAspect.advice"); 44 Interceptions.add("TestAspect.advice2"); 45 return invocation.invokeNext(); 46 47 } 48 49 public Object advice3(Invocation invocation)throws Throwable 50 { 51 System.out.println("TestAspect.advice"); 52 Interceptions.add("TestAspect.advice3"); 53 return invocation.invokeNext(); 54 } 55 } 56 | Popular Tags |