public class MethodProxy extends Object
Constructor and Description |
---|
MethodProxy() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void proxy(Method method, InvocationHandler invocationHandler)
public static void proxy(Class<?> declaringClass, String methodName, InvocationHandler invocationHandler)
declaringClass
.
Each call to the method will be routed to the invocationHandler instead.Copyright © 2019. All rights reserved.