Save This Page
Home » cglib-src-2.2 » net.sf.cglib.proxy » [javadoc | source]
net.sf.cglib.proxy
public class: MethodProxy [javadoc | source]
java.lang.Object
   net.sf.cglib.proxy.MethodProxy
Classes generated by Enhancer pass this object to the registered MethodInterceptor objects when an intercepted method is invoked. It can be used to either invoke the original method, or call the same method on a different object of the same type.
Method from net.sf.cglib.proxy.MethodProxy Summary:
create,   find,   getSignature,   getSuperIndex,   getSuperName,   invoke,   invokeSuper
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.cglib.proxy.MethodProxy Detail:
 public static MethodProxy create(Class c1,
    Class c2,
    String desc,
    String name1,
    String name2) 
 public static MethodProxy find(Class type,
    Signature sig) 
    Return the MethodProxy used when intercepting the method matching the given signature.
 public Signature getSignature() 
    Return the signature of the proxied method.
 public int getSuperIndex() 
    Return the net.sf.cglib.reflect.FastClass method index for the method used by #invokeSuper . This index uniquely identifies the method within the generated proxy, and therefore can be useful to reference external metadata.
 public String getSuperName() 
    Return the name of the synthetic method created by CGLIB which is used by #invokeSuper to invoke the superclass (non-intercepted) method implementation. The parameter types are the same as the proxied method.
 public Object invoke(Object obj,
    Object[] args) throws Throwable 
    Invoke the original method, on a different object of the same type.
 public Object invokeSuper(Object obj,
    Object[] args) throws Throwable 
    Invoke the original (super) method on the specified object.