public class Proxy extends Object implements 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 | Field and Description |
---|---|
protected InvocationHandler |
h |
Modifier | Constructor and Description |
---|---|
protected |
Proxy(InvocationHandler h) |
Modifier and Type | Method and Description |
---|---|
static InvocationHandler |
getInvocationHandler(Object proxy) |
static Class |
getProxyClass(ClassLoader loader,
Class[] interfaces) |
static boolean |
isProxyClass(Class cl) |
static Object |
newProxyInstance(ClassLoader loader,
Class[] interfaces,
InvocationHandler h) |
protected InvocationHandler h
protected Proxy(InvocationHandler h)
public static InvocationHandler getInvocationHandler(Object proxy)
public static Class getProxyClass(ClassLoader loader, Class[] interfaces)
public static boolean isProxyClass(Class cl)
public static Object newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h)
Copyright © 2018. All rights reserved.