1 package alt.jiapi.jazzpect.interceptor; 2 3 import java.lang.reflect.Method ; 4 import java.lang.reflect.AccessibleObject ; 5 6 11 class MethodInvocation extends Invocation implements org.aopalliance.intercept.MethodInvocation { 12 13 MethodInvocation(Object target, Method method, Object [] args) { 14 super(target, args, method); 15 } 16 17 public Method getMethod() { 18 return (Method )getStaticPart(); 19 } 20 21 22 public Object proceed() throws Throwable { 23 return getMethod().invoke(getThis(), getArguments()); 24 } 25 } 26 | Popular Tags |