1 22 package org.jboss.ejb3.test.aspectdomain; 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 TestInterceptor implements Interceptor, java.io.Serializable  35 { 36 private static final Logger log = Logger.getLogger(TestInterceptor.class); 37 38 public TestInterceptor() 39 { 40 } 41 42 public String getName() 43 { 44 return "TestInterceptor"; 45 } 46 47 public Object invoke(Invocation invocation) throws Throwable  48 { 49 try 50 { 51 return getName(); 52 } 53 finally 54 { 55 } 56 } 57 } 58 | Popular Tags |