com.agical.rmock.core.util
Class ForwardingMethodHandle

java.lang.Object
  extended by com.agical.rmock.core.util.ForwardingMethodHandle
All Implemented Interfaces:
MethodHandle

public class ForwardingMethodHandle
extends java.lang.Object
implements MethodHandle

(c) Agical AB 2005

Author:
brolund

Constructor Summary
ForwardingMethodHandle(java.lang.Object proxy, net.sf.cglib.proxy.MethodProxy methodProxy, java.lang.String objectId, java.lang.String method, java.lang.Class[] parameterTypes, java.lang.Class returnType)
           
 
Method Summary
 java.lang.Class[] getParameterTypes()
           
 java.lang.Class getReturnType()
           
 java.lang.Object invoke(java.lang.Object[] args)
          Invokes the method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingMethodHandle

public ForwardingMethodHandle(java.lang.Object proxy,
                              net.sf.cglib.proxy.MethodProxy methodProxy,
                              java.lang.String objectId,
                              java.lang.String method,
                              java.lang.Class[] parameterTypes,
                              java.lang.Class returnType)
Method Detail

getReturnType

public java.lang.Class getReturnType()
Specified by:
getReturnType in interface MethodHandle
Returns:
The return type of this method

getParameterTypes

public java.lang.Class[] getParameterTypes()
Specified by:
getParameterTypes in interface MethodHandle
Returns:
the types of the arguments for this method.

invoke

public java.lang.Object invoke(java.lang.Object[] args)
                        throws java.lang.Throwable
Description copied from interface: MethodHandle
Invokes the method

Specified by:
invoke in interface MethodHandle
Parameters:
args - The arguments to use
Returns:
the object returned by the method
Throws:
java.lang.Throwable


Copyright © 2005-2010 Agical AB. All Rights Reserved.