com.agical.rmock.core.util
Class InterfaceMethodHandle

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

public class InterfaceMethodHandle
extends java.lang.Object
implements MethodHandle

(c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
InterfaceMethodHandle(java.lang.String objectId, java.lang.String method, java.lang.Class[] parameterTypes, java.lang.Class returnType, ProxyFactory proxyFactory)
           
 
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

InterfaceMethodHandle

public InterfaceMethodHandle(java.lang.String objectId,
                             java.lang.String method,
                             java.lang.Class[] parameterTypes,
                             java.lang.Class returnType,
                             ProxyFactory proxyFactory)
Parameters:
returnValue -
parameterTypes -
returnType -
Method Detail

getReturnType

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

getParameterTypes

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

invoke

public java.lang.Object invoke(java.lang.Object[] args)
                        throws java.lang.Exception
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.Exception
See Also:
MethodHandle.invoke(java.lang.Object[])


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