|
||||||||||
| 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(Object proxy)
Returns the invocation handler for the specified proxy instance. |
Class |
getProxyClass(Class interfce)
Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces. |
Class |
getProxyClass(Class[] interfaces)
Returns the java.lang.Class object for a proxy class given a class loader and an array of interfaces. |
void |
init(Properties props)
|
boolean |
isProxyClass(Class cl)
|
Object |
newProxyInstance(Class proxyClass)
Returns a new proxy instance from the specified proxy class. |
Object |
newProxyInstance(Class[] interfaces,
InvocationHandler h)
|
Object |
newProxyInstance(Class interfce,
InvocationHandler h)
|
Object |
setInvocationHandler(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(Properties props)
throws OpenEJBException
init in interface ProxyFactoryOpenEJBException
public InvocationHandler getInvocationHandler(Object proxy)
throws IllegalArgumentException
getInvocationHandler in interface ProxyFactoryIllegalArgumentException
public Object setInvocationHandler(Object proxy,
InvocationHandler handler)
throws IllegalArgumentException
setInvocationHandler in interface ProxyFactoryIllegalArgumentException
public Class getProxyClass(Class interfce)
throws IllegalArgumentException
getProxyClass in interface ProxyFactoryIllegalArgumentException
public Class getProxyClass(Class[] interfaces)
throws IllegalArgumentException
getProxyClass in interface ProxyFactoryIllegalArgumentExceptionpublic boolean isProxyClass(Class cl)
isProxyClass in interface ProxyFactory
public Object newProxyInstance(Class proxyClass)
throws IllegalArgumentException
ProxyFactory
newProxyInstance in interface ProxyFactoryIllegalArgumentException - Occurs when the specified class is not a proxy class.
public Object newProxyInstance(Class interfce,
InvocationHandler h)
throws IllegalArgumentException
newProxyInstance in interface ProxyFactoryIllegalArgumentException
public Object newProxyInstance(Class[] interfaces,
InvocationHandler h)
throws IllegalArgumentException
newProxyInstance in interface ProxyFactoryIllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||