Example usage for Java java.lang.reflect Proxy fields, constructors, methods, implement or subclass
The text is from its open source code.
InvocationHandler | getInvocationHandler(Object proxy) Returns the invocation handler for the specified proxy instance. |
Class> | getProxyClass(ClassLoader loader, Class>... interfaces) Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces. |
boolean | isProxyClass(Class> cl) Returns true if the given class is a proxy class. |
Object | newProxyInstance(ClassLoader loader, Class>[] interfaces, InvocationHandler h) Returns a proxy instance for the specified interfaces that dispatches method invocations to the specified invocation handler. |
Object | newProxyInstance(Class> caller, Constructor> cons, InvocationHandler h) |