|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cglib.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 Summary | |
static MethodProxy |
create(java.lang.ClassLoader loader,
java.lang.Class c1,
java.lang.String m1,
java.lang.Class c2,
java.lang.String m2)
For internal use by Enhancer only; see the FastMethod class
for similar functionality. |
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.Object[] args)
Invoke the original method, on a different object of the same type. |
java.lang.Object |
invokeSuper(java.lang.Object obj,
java.lang.Object[] args)
Invoke the original (super) method on the specified object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static MethodProxy create(java.lang.ClassLoader loader, java.lang.Class c1, java.lang.String m1, java.lang.Class c2, java.lang.String m2)
Enhancer
only; see the FastMethod
class
for similar functionality.
public java.lang.Object invoke(java.lang.Object obj, java.lang.Object[] args) throws java.lang.Throwable
obj
- the compatible object; recursion will result if you use the object passed as the first
argument to the MethodInterceptor (usually not what you want)args
- the arguments passed to the intercepted method; you may substitute a different
argument array as long as the types are compatible
java.lang.Throwable
MethodInterceptor.intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], net.sf.cglib.MethodProxy)
public java.lang.Object invokeSuper(java.lang.Object obj, java.lang.Object[] args) throws java.lang.Throwable
obj
- the enhanced object, must be the object passed as the first
argument to the MethodInterceptorargs
- the arguments passed to the intercepted method; you may substitute a different
argument array as long as the types are compatible
java.lang.Throwable
MethodInterceptor.intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], net.sf.cglib.MethodProxy)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |