Package net.sf.cglib.proxy
Class Proxy
- java.lang.Object
-
- net.sf.cglib.proxy.Proxy
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Proxy.ProxyImpl
public class Proxy extends java.lang.Object implements java.io.Serializable
This class is meant to be used as replacement forjava.lang.reflect.Proxy
under JDK 1.2. There are some known subtle differences:- The exceptions returned by invoking
getExceptionTypes
on theMethod
passed to theinvoke
method are the exact set that can be thrown without resulting in anUndeclaredThrowableException
being thrown. UndeclaredThrowableException
is used instead ofjava.lang.reflect.UndeclaredThrowableException
.
- Version:
- $Id: Proxy.java,v 1.6 2004/06/24 21:15:19 herbyderby Exp $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Proxy.ProxyImpl
-
Field Summary
Fields Modifier and Type Field Description private static CallbackFilter
BAD_OBJECT_METHOD_FILTER
protected InvocationHandler
h
-
Constructor Summary
Constructors Modifier Constructor Description protected
Proxy(InvocationHandler h)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
h
protected InvocationHandler h
-
BAD_OBJECT_METHOD_FILTER
private static final CallbackFilter BAD_OBJECT_METHOD_FILTER
-
-
Constructor Detail
-
Proxy
protected Proxy(InvocationHandler h)
-
-
Method Detail
-
getInvocationHandler
public static InvocationHandler getInvocationHandler(java.lang.Object proxy)
-
getProxyClass
public static java.lang.Class getProxyClass(java.lang.ClassLoader loader, java.lang.Class[] interfaces)
-
isProxyClass
public static boolean isProxyClass(java.lang.Class cl)
-
newProxyInstance
public static java.lang.Object newProxyInstance(java.lang.ClassLoader loader, java.lang.Class[] interfaces, InvocationHandler h)
-
-