public class MethodProxy
extends java.lang.Object
Constructor and Description |
---|
MethodProxy() |
Modifier and Type | Method and Description |
---|---|
static void |
proxy(java.lang.Class<?> declaringClass,
java.lang.String methodName,
java.lang.reflect.InvocationHandler invocationHandler)
Add a proxy for a method declared in class
declaringClass . |
static void |
proxy(java.lang.reflect.Method method,
java.lang.reflect.InvocationHandler invocationHandler)
Add a proxy for this method.
|
public static void proxy(java.lang.reflect.Method method, java.lang.reflect.InvocationHandler invocationHandler)
public static void proxy(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.reflect.InvocationHandler invocationHandler)
declaringClass
.
Each call to the method will be routed to the invocationHandler instead.