org.openejb.client
Class CgLibProxyFactory

java.lang.Object
  extended byorg.openejb.client.CgLibProxyFactory
All Implemented Interfaces:
ProxyFactory

public class CgLibProxyFactory
extends Object
implements ProxyFactory


Constructor Summary
CgLibProxyFactory()
           
 
Method Summary
 InvocationHandler getInvocationHandler(Object proxy)
          Returns the invocation handler for the specified proxy instance.
 void init(Properties props)
          Prepares the ProxyFactory for use.
 boolean isProxyClass(Class 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.
 Object newProxyInstance(Class[] interfaces, InvocationHandler handler, ClassLoader classLoader)
          Returns an instance of a proxy class for the specified interface that dispatches method invocations to the specified invocation handler.
 Object newProxyInstance(Class superClass, Class[] interfaces, InvocationHandler handler, ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CgLibProxyFactory

public CgLibProxyFactory()
Method Detail

init

public void init(Properties props)
Description copied from interface: ProxyFactory
Prepares the ProxyFactory for use. Called once right after the ProxyFactory is instantiated.

Specified by:
init in interface ProxyFactory

getInvocationHandler

public InvocationHandler getInvocationHandler(Object proxy)
                                       throws IllegalArgumentException
Description copied from interface: ProxyFactory
Returns the invocation handler for the specified proxy instance.

Specified by:
getInvocationHandler in interface ProxyFactory
Throws:
IllegalArgumentException

isProxyClass

public boolean isProxyClass(Class cl)
Description copied from interface: ProxyFactory
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.

Specified by:
isProxyClass in interface ProxyFactory

newProxyInstance

public Object newProxyInstance(Class[] interfaces,
                               InvocationHandler handler,
                               ClassLoader classLoader)
                        throws IllegalArgumentException
Description copied from interface: ProxyFactory
Returns an instance of a proxy class for the specified interface that dispatches method invocations to the specified invocation handler.

Specified by:
newProxyInstance in interface ProxyFactory
Throws:
IllegalArgumentException

newProxyInstance

public Object newProxyInstance(Class superClass,
                               Class[] interfaces,
                               InvocationHandler handler,
                               ClassLoader classLoader)
                        throws IllegalArgumentException
Specified by:
newProxyInstance in interface ProxyFactory
Throws:
IllegalArgumentException


Copyright © 1999-2005 OpenEJB. All Rights Reserved.