org.omnaest.utils.proxy
Class MethodCallCapture

java.lang.Object
  extended by org.omnaest.utils.proxy.MethodCallCapture

public class MethodCallCapture
extends Object

Result of a captured method call.


Field Summary
protected  Object[] args
           
protected  Method method
           
protected  Object obj
           
protected  net.sf.cglib.proxy.MethodProxy proxy
           
 
Method Summary
 Object[] getArgs()
          Arguments of the method call
 Method getMethod()
          Intercepted method
 String getMethodName()
          Returns the name of the called Method.
 Object getObj()
           
 net.sf.cglib.proxy.MethodProxy getProxy()
          A secondary proxy used to invoke the non-intercepted method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obj

protected Object obj

method

protected Method method

args

protected Object[] args

proxy

protected net.sf.cglib.proxy.MethodProxy proxy
Method Detail

getObj

public Object getObj()
Returns:
the enhanced object / stub / proxy

getMethod

public Method getMethod()
Intercepted method

Returns:

getArgs

public Object[] getArgs()
Arguments of the method call

Returns:

getProxy

public net.sf.cglib.proxy.MethodProxy getProxy()
A secondary proxy used to invoke the non-intercepted method.

Returns:
See Also:
MethodProxy.invokeSuper(Object, Object[])

getMethodName

public String getMethodName()
Returns the name of the called Method.

Returns:
name of the method or null if no method has been resolved.
See Also:
Method.getName()


Copyright © 2011. All Rights Reserved.