1 22 package test.implementation.interceptor.support; 23 24 import org.jboss.mx.interceptor.AbstractSharedInterceptor; 25 import org.jboss.mx.server.Invocation; 26 27 32 public class MySharedInterceptor 33 extends AbstractSharedInterceptor 34 { 35 36 public boolean isInit = false; 37 public boolean isStart = false; 38 public boolean isStop = false; 39 public boolean isDestroy = false; 40 41 public MySharedInterceptor() 42 { 43 super("MySharedInterceptor"); 44 } 45 46 public Object invoke(Invocation i) throws Throwable 47 { 48 i.setType("something"); 49 50 return super.invoke(i); 51 } 52 53 public void init() throws Exception 54 { 55 isInit = true; 56 } 57 58 public void start() 59 { 60 isStart = true; 61 } 62 63 public void stop() throws Exception 64 { 65 isStop = true; 66 } 67 68 public void destroy() 69 { 70 isDestroy = true; 71 } 72 73 } 74 75 76 | Popular Tags |