public class MethodProxy extends Object
| Constructor | Description |
|---|---|
MethodProxy() |
| Modifier and Type | Method | 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 © 2007–2019. All rights reserved.