org.powermock.api.support
Class MethodProxy

java.lang.Object
  extended by org.powermock.api.support.MethodProxy

public class MethodProxy
extends Object


Constructor Summary
MethodProxy()
           
 
Method Summary
static void proxy(Class<?> declaringClass, String methodName, InvocationHandler invocationHandler)
          Add a proxy for a method declared in class declaringClass.
static void proxy(Method method, InvocationHandler invocationHandler)
          Add a proxy for this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodProxy

public MethodProxy()
Method Detail

proxy

public static void proxy(Method method,
                         InvocationHandler invocationHandler)
Add a proxy for this method. Each call to the method will be routed to the invocationHandler instead.


proxy

public static void proxy(Class<?> declaringClass,
                         String methodName,
                         InvocationHandler invocationHandler)
Add a proxy for a method declared in class declaringClass. Each call to the method will be routed to the invocationHandler instead.



Copyright © 2007-2012. All Rights Reserved.