1 22 package org.jboss.test.aop.scoped; 23 24 import org.jboss.aop.joinpoint.Invocation; 25 26 31 public class ScopedAspect 32 { 33 public static int intercepted; 34 public static int value; 35 36 public void setValue(int i) 37 { 38 value = i; 39 } 40 41 public Object test(Invocation invocation) throws Throwable  42 { 43 System.out.println("--- ScopedAspect intercepting " + getClass().getClassLoader()); 44 intercepted++; 45 return invocation.invokeNext(); 46 } 47 48 } 49 | Popular Tags |