|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.client.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)
Prepare the factory 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 proxyClass)
Creates a new proxy instance using the handler of the proxy passed in. |
Object |
newProxyInstance(Class[] interfaces,
InvocationHandler h)
Returns an instance of a proxy class for the specified interface that dispatches method invocations to the specified invocation handler. |
Object |
newProxyInstance(Class interfce,
InvocationHandler h)
Returns an instance of a proxy class for the specified interface that dispatches method invocations to the specified invocation handler. |
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)
init in interface ProxyFactoryprops -
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 ProxyFactoryinterfce -
IllegalArgumentException
public Class getProxyClass(Class[] interfaces)
throws IllegalArgumentException
getProxyClass in interface ProxyFactoryinterfaces -
IllegalArgumentExceptionpublic boolean isProxyClass(Class cl)
isProxyClass in interface ProxyFactorycl -
public Object newProxyInstance(Class proxyClass)
throws IllegalArgumentException
newProxyInstance in interface ProxyFactoryproxyClass -
IllegalArgumentException
public Object newProxyInstance(Class interfce,
InvocationHandler h)
throws IllegalArgumentException
newProxyInstance in interface ProxyFactoryinterfce - h -
IllegalArgumentException
public Object newProxyInstance(Class[] interfaces,
InvocationHandler h)
throws IllegalArgumentException
newProxyInstance in interface ProxyFactoryinterfaces - h -
IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||