org.openejb.client
Class ProxyManager

java.lang.Object
  extended byorg.openejb.client.ProxyManager

public class ProxyManager
extends Object

Since:
11/25/2001

Constructor Summary
ProxyManager()
           
 
Method Summary
static ProxyFactory getDefaultFactory()
           
static String getDefaultFactoryName()
           
static ProxyFactory getInstance()
           
static InvocationHandler getInvocationHandler(Object proxy)
          Casts the object passed in to the appropriate proxy type and retreives the InvocationHandler assigned to it.
static boolean isProxyClass(Class cl)
           
static Object newProxyInstance(Class[] interfaces, InvocationHandler h, ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyManager

public ProxyManager()
Method Detail

getInstance

public static ProxyFactory getInstance()

getDefaultFactory

public static ProxyFactory getDefaultFactory()

getDefaultFactoryName

public static String getDefaultFactoryName()

getInvocationHandler

public static InvocationHandler getInvocationHandler(Object proxy)
Casts the object passed in to the appropriate proxy type and retreives the InvocationHandler assigned to it.

Executes on the default ProxyFactory instance.

Parameters:
proxy - The Proxy object to retreive the InvocationHandler from.
Returns:
The implementation of InvocationHandler handling invocations on the specified Proxy object.

newProxyInstance

public static Object newProxyInstance(Class[] interfaces,
                                      InvocationHandler h,
                                      ClassLoader classLoader)

isProxyClass

public static boolean isProxyClass(Class cl)


Copyright © 1999-2006 OpenEJB. All Rights Reserved.