1 22 package org.jboss.aop.joinpoint; 23 24 import org.jboss.aop.util.ThreadLocalStack; 25 26 32 public class CurrentInvocation 33 { 34 private static ThreadLocalStack stack = new ThreadLocalStack(); 35 36 public static void push(Invocation invocation) 37 { 38 stack.push(invocation); 39 } 40 41 public static void pop() 42 { 43 stack.pop(); 44 } 45 46 public static Invocation get() 47 { 48 return (Invocation) stack.get(); 49 } 50 51 public static Object proceed() throws Throwable  52 { 53 return get().invokeNext(); 54 } 55 } 56 | Popular Tags |