public class Proxy
extends java.lang.Object
implements java.io.Serializable
java.lang.reflect.Proxy
under JDK 1.2. There are some known
subtle differences:
getExceptionTypes
on the Method
passed to the invoke
method
are the exact set that can be thrown without resulting in an
UndeclaredThrowableException
being thrown.
UndeclaredThrowableException
is used instead
of java.lang.reflect.UndeclaredThrowableException
.
Modifier and Type | Class and Description |
---|---|
private static class |
Proxy.ProxyImpl |
Modifier and Type | Field and Description |
---|---|
private static CallbackFilter |
BAD_OBJECT_METHOD_FILTER |
protected InvocationHandler |
h |
Modifier | Constructor and Description |
---|---|
protected |
Proxy(InvocationHandler h) |
Modifier and Type | Method and Description |
---|---|
static InvocationHandler |
getInvocationHandler(java.lang.Object proxy) |
static java.lang.Class |
getProxyClass(java.lang.ClassLoader loader,
java.lang.Class[] interfaces) |
static boolean |
isProxyClass(java.lang.Class cl) |
static java.lang.Object |
newProxyInstance(java.lang.ClassLoader loader,
java.lang.Class[] interfaces,
InvocationHandler h) |
protected InvocationHandler h
private static final CallbackFilter BAD_OBJECT_METHOD_FILTER
protected Proxy(InvocationHandler h)
public static InvocationHandler getInvocationHandler(java.lang.Object proxy)
public static java.lang.Class getProxyClass(java.lang.ClassLoader loader, java.lang.Class[] interfaces)
public static boolean isProxyClass(java.lang.Class cl)
public static java.lang.Object newProxyInstance(java.lang.ClassLoader loader, java.lang.Class[] interfaces, InvocationHandler h)