|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.util.proxy.Jdk13ProxyFactory
public class Jdk13ProxyFactory
Implementation of ProxyFactory for JDK 1.3 Proxies. This only compiles on JDK 1.3 or better. It is very fast because it builds the proxies out of raw bytecode.
Constructor Summary | |
---|---|
Jdk13ProxyFactory()
|
Method Summary | |
---|---|
InvocationHandler |
getInvocationHandler(java.lang.Object proxy)
Returns the invocation handler for the specified proxy instance. |
java.lang.Class |
getProxyClass(java.lang.Class interfce)
Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces. |
java.lang.Class |
getProxyClass(java.lang.Class[] interfaces)
Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces. |
void |
init(java.util.Properties props)
|
boolean |
isProxyClass(java.lang.Class cl)
|
java.lang.Object |
newProxyInstance(java.lang.Class proxyClass)
Returns a new proxy instance from the specified proxy class. |
java.lang.Object |
newProxyInstance(java.lang.Class[] interfaces,
InvocationHandler h)
|
java.lang.Object |
newProxyInstance(java.lang.Class interfce,
InvocationHandler h)
|
java.lang.Object |
setInvocationHandler(java.lang.Object proxy,
InvocationHandler handler)
Sets the invocation handler for the specified proxy instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jdk13ProxyFactory()
Method Detail |
---|
public void init(java.util.Properties props) throws OpenEJBException
init
in interface ProxyFactory
OpenEJBException
public InvocationHandler getInvocationHandler(java.lang.Object proxy) throws java.lang.IllegalArgumentException
getInvocationHandler
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Object setInvocationHandler(java.lang.Object proxy, InvocationHandler handler) throws java.lang.IllegalArgumentException
setInvocationHandler
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Class getProxyClass(java.lang.Class interfce) throws java.lang.IllegalArgumentException
getProxyClass
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Class getProxyClass(java.lang.Class[] interfaces) throws java.lang.IllegalArgumentException
getProxyClass
in interface ProxyFactory
java.lang.IllegalArgumentException
public boolean isProxyClass(java.lang.Class cl)
isProxyClass
in interface ProxyFactory
public java.lang.Object newProxyInstance(java.lang.Class proxyClass) throws java.lang.IllegalArgumentException
ProxyFactory
newProxyInstance
in interface ProxyFactory
java.lang.IllegalArgumentException
- Occurs when the specified class is not a proxy class.public java.lang.Object newProxyInstance(java.lang.Class interfce, InvocationHandler h) throws java.lang.IllegalArgumentException
newProxyInstance
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Object newProxyInstance(java.lang.Class[] interfaces, InvocationHandler h) throws java.lang.IllegalArgumentException
newProxyInstance
in interface ProxyFactory
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |