1 22 package org.jboss.test.aop.memoryleaks; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 32 public class TestInterceptor implements Interceptor 33 { 34 public static boolean intercepted; 35 public String getName() 36 { 37 return "TestInterceptor"; 38 } 39 40 public Object invoke(Invocation invocation) throws Throwable  41 { 42 System.out.println("Interceptor intercepting"); 43 intercepted = true; 44 return invocation.invokeNext(); 45 } 46 47 } 48 | Popular Tags |