1 22 package org.jboss.test.aop.annotated; 23 24 31 public class CountingInterceptor implements org.jboss.aop.advice.Interceptor 32 { 33 34 public String getName() 35 { 36 return "CountingInterceptor"; 37 } 38 39 public Object invoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable  40 { 41 System.out.println("CountingInterceptor interception: " + invocation.getClass().getName()); 42 count++; 43 return invocation.invokeNext(); 44 } 45 46 public static int count; 47 } 48 49 | Popular Tags |