org.openejb.util.proxy.jdk12
Class Jdk12ProxyFactory
java.lang.Object
|
+--org.openejb.util.proxy.jdk12.Jdk12ProxyFactory
- All Implemented Interfaces:
- ProxyFactory
- public class Jdk12ProxyFactory
- extends java.lang.Object
- implements ProxyFactory
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jdk12ProxyFactory
public Jdk12ProxyFactory()
init
public void init(java.util.Properties props)
throws OpenEJBException
- Specified by:
init
in interface ProxyFactory
getInvocationHandler
public InvocationHandler getInvocationHandler(java.lang.Object proxy)
throws java.lang.IllegalArgumentException
- Returns the invocation handler for the specified proxy instance.
- Specified by:
getInvocationHandler
in interface ProxyFactory
setInvocationHandler
public java.lang.Object setInvocationHandler(java.lang.Object proxy,
InvocationHandler handler)
throws java.lang.IllegalArgumentException
- Sets the invocation handler for the specified proxy instance.
- Specified by:
setInvocationHandler
in interface ProxyFactory
getProxyClass
public java.lang.Class getProxyClass(java.lang.Class interfce)
throws java.lang.IllegalArgumentException
- Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces.
- Specified by:
getProxyClass
in interface ProxyFactory
getProxyClass
public java.lang.Class getProxyClass(java.lang.Class[] interfaces)
throws java.lang.IllegalArgumentException
- Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces.
- Specified by:
getProxyClass
in interface ProxyFactory
isProxyClass
public boolean isProxyClass(java.lang.Class cl)
- Specified by:
isProxyClass
in interface ProxyFactory
newProxyInstance
public java.lang.Object newProxyInstance(java.lang.Class proxyClass)
throws java.lang.IllegalArgumentException
- Description copied from interface:
ProxyFactory
- Returns a new proxy instance from the specified proxy class. The
interface(s) implemented by the proxy instance are determined by
the proxy class. The class name may or may not be meaningful,
depending on the implementation.
- Specified by:
newProxyInstance
in interface ProxyFactory
- Following copied from interface:
org.openejb.util.proxy.ProxyFactory
- Throws:
java.lang.IllegalArgumentException
- Occurs when the specified class is not a proxy class.
newProxyInstance
public java.lang.Object newProxyInstance(java.lang.Class interfce,
InvocationHandler h)
throws java.lang.IllegalArgumentException
- Specified by:
newProxyInstance
in interface ProxyFactory
newProxyInstance
public java.lang.Object newProxyInstance(java.lang.Class[] interfaces,
InvocationHandler h)
throws java.lang.IllegalArgumentException
- Specified by:
newProxyInstance
in interface ProxyFactory