1 22 package org.jboss.test.aop.instanceofintroduced; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 32 public class SimpleInterceptor implements Interceptor 33 { 34 public static boolean intercepted; 35 36 public SimpleInterceptor() 37 { 38 super(); 40 } 41 42 public String getName() 43 { 44 return this.getClass().getName(); 45 } 46 47 public Object invoke(Invocation invocation) throws Throwable  48 { 49 intercepted = true; 50 return invocation.invokeNext(); 51 } 52 53 54 55 } 56 | Popular Tags |