public final class Proxies
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T,U extends T> |
newProxy(java.lang.Class<T> iface,
U delegate,
java.lang.reflect.InvocationHandler handler)
Creates a new proxy instance for the specified delegate bound to the given invocation handler.
|
public static <T,U extends T> T newProxy(java.lang.Class<T> iface,
U delegate,
java.lang.reflect.InvocationHandler handler)
iface - main interface to proxydelegate - delegate class whose interfaces to proxyhandler - proxy invocation handler