1 22 package org.jboss.test.aop.basic; 23 24 25 28 public class CallerInterceptor implements org.jboss.aop.advice.Interceptor 29 { 30 31 public String getName() 32 { 33 return "CallerInterceptor"; 34 } 35 36 public static boolean called = false; 37 38 public Object invoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable  39 { 40 System.out.println("Called: " + invocation); 41 called = true; 42 return invocation.invokeNext(); 43 } 44 } 45 | Popular Tags |