1 22 package org.jboss.ejb3.test.bank; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 import org.jboss.logging.Logger; 27 28 34 public class TellerInterceptor implements Interceptor, java.io.Serializable 35 { 36 private static final Logger log = Logger.getLogger(TellerInterceptor.class); 37 38 public static boolean accessed = false; 39 40 public TellerInterceptor() 41 { 42 } 43 44 public String getName() 45 { 46 return "TellerInterceptor"; 47 } 48 49 public Object invoke(Invocation invocation) throws Throwable 50 { 51 try 52 { 53 return invocation.invokeNext(); 54 } 55 finally 56 { 57 accessed = true; 58 } 59 } 60 } 61 | Popular Tags |