Package net.sf.cglib.proxy
Class Proxy
- java.lang.Object
-
- net.sf.cglib.proxy.Proxy
-
- All Implemented Interfaces:
Serializable
public class Proxy extends Object implements Serializable
This class is meant to be used as replacement forjava.lang.reflect.Proxyunder JDK 1.2. There are some known subtle differences:- The exceptions returned by invoking
getExceptionTypeson theMethodpassed to theinvokemethod are the exact set that can be thrown without resulting in anUndeclaredThrowableExceptionbeing thrown. UndeclaredThrowableExceptionis 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
-
-
Field Summary
Fields Modifier and Type Field Description protected InvocationHandlerh
-
Constructor Summary
Constructors Modifier Constructor Description protectedProxy(InvocationHandler h)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InvocationHandlergetInvocationHandler(Object proxy)static ClassgetProxyClass(ClassLoader loader, Class[] interfaces)static booleanisProxyClass(Class cl)static ObjectnewProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h)
-
-
-
Field Detail
-
h
protected InvocationHandler h
-
-
Constructor Detail
-
Proxy
protected Proxy(InvocationHandler h)
-
-
Method Detail
-
getInvocationHandler
public static InvocationHandler getInvocationHandler(Object proxy)
-
getProxyClass
public static Class getProxyClass(ClassLoader loader, Class[] interfaces)
-
isProxyClass
public static boolean isProxyClass(Class cl)
-
newProxyInstance
public static Object newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h)
-
-