1 22 package org.jboss.ejb3.test.standalone; 23 24 import javax.interceptor.AroundInvoke; 25 import javax.interceptor.InvocationContext; 26 27 33 public class StupidInterceptor 34 { 35 public static int count = 0; 36 37 @AroundInvoke 38 public Object log(InvocationContext inv) throws Exception  39 { 40 count++; 41 System.out.println("hello " + count); 42 return inv.proceed(); 43 } 44 } 45 | Popular Tags |