API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.reflect. Proxy View Source
Author(s)
Peter Jones
Since
1.3
Version
1.22, 05/11/17
Serial
Hierarchy
 Object
      Proxy
Implements
 Serializable
Subclasses
Description
public class Proxy
  Proxy provides static methods for creating dynamic proxy classes and instances, and it is also the superclass of all dynamic proxy classes created by those methods.
See also:    InvocationHandler
Constructors
private Proxy ()
Prohibits instantiation.
protected Proxy (InvocationHandler h)
  Constructs a new Proxy instance from a subclass (typically, a dynamic proxy class) with the specified value for its invocation handler.
Methods
Hide/Show inherited methods
publicstatic InvocationHandler getInvocationHandler (Object proxy) throws IllegalArgumentException
  Returns the invocation handler for the specified proxy instance.
publicstatic Class<Object> getProxyClass (ClassLoader loader, Class<Object> interfaces) throws IllegalArgumentException
  Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces.
publicstatic boolean isProxyClass (Class<Object> cl)
  Returns true if and only if the specified class was dynamically generated to be a proxy class using the getProxyClass method or the newProxyInstance method.
publicstatic Object newProxyInstance (ClassLoader loader, Class<Object> interfaces, InvocationHandler h) throws IllegalArgumentException
  Returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler.
Fields
Hide/Show inherited fields
protected InvocationHandler h
the invocation handler for this proxy instance.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar