org.jboss.proxy.compiler
Class Proxy

java.lang.Object
  extended by org.jboss.proxy.compiler.Proxy

public class Proxy
extends Object

A factory for creating proxy objects.

Version:
$Revision: 1.3.16.1 $
Author:
Unknown, Jason Dillon

Constructor Summary
Proxy()
           
 
Method Summary
static void forgetProxyForClass(Class clazz)
           
static Object newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h)
          Create a new proxy instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy()
Method Detail

newProxyInstance

public static Object newProxyInstance(ClassLoader loader,
                                      Class[] interfaces,
                                      InvocationHandler h)
Create a new proxy instance.

Proxy instances will also implement Serializable.

Delegates the actual creation of the proxy to Proxies.newTarget(java.lang.ClassLoader, org.jboss.proxy.compiler.InvocationHandler, java.lang.Class[]).

Parameters:
loader - The class loader for the new proxy instance.
interfaces - A list of classes which the proxy will implement.
h - The handler for method invocations.
Returns:
A new proxy instance.
Throws:
RuntimeException - Failed to create new proxy target.

forgetProxyForClass

public static void forgetProxyForClass(Class clazz)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.