1 22 package org.jboss.aop.proxy.container; 23 24 import org.jboss.aop.MethodInfo; 25 import org.jboss.aop.advice.Interceptor; 26 import org.jboss.aop.joinpoint.MethodInvocation; 27 28 34 public class ContainerProxyMethodInvocation extends MethodInvocation 35 { 36 AspectManaged proxy; 37 static final Object [] NO_ARGS = new Object [0]; 38 39 public ContainerProxyMethodInvocation(MethodInfo info, Interceptor[] interceptors, AspectManaged proxy) 40 { 41 super(info, interceptors); 42 this.proxy = proxy; 43 } 44 45 public AspectManaged getProxy() 46 { 47 return proxy; 48 } 49 50 public Object [] getArguments() 51 { 52 Object [] args = super.getArguments(); 53 if (args != null) 54 { 55 return args; 56 } 57 return NO_ARGS; 58 } 59 60 } 61 | Popular Tags |