1 22 package org.jboss.test.aop.scope; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 32 public class PerJoinpointInterceptor implements Interceptor 33 { 34 public String getName() 35 { 36 return "PerJoinpointInterceptor"; 37 } 38 39 public Object invoke(Invocation invocation) throws Throwable  40 { 41 System.out.println(">>> per joinpoint interceptor invoke"); 42 Interceptions.add(this); 43 return invocation.invokeNext(); 44 } 45 } 46 | Popular Tags |