|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.client.proxy.ProxyManager
public class ProxyManager
| Constructor Summary | |
|---|---|
ProxyManager()
|
|
| Method Summary | |
|---|---|
static java.lang.ClassLoader |
getContextClassLoader()
|
static ProxyFactory |
getDefaultFactory()
|
static java.lang.String |
getDefaultFactoryName()
|
static InvocationHandler |
getInvocationHandler(java.lang.Object proxy)
Casts the object passed in to the appropriate proxy type and retreives the InvocationHandler assigned to it. |
static java.lang.Class |
getProxyClass(java.lang.Class interfaceType)
Loads and returns the proxy implementation for the specified interface. |
static java.lang.Class |
getProxyClass(java.lang.Class[] interfaces)
|
static boolean |
isProxyClass(java.lang.Class cl)
|
static java.lang.Object |
newProxyInstance(java.lang.Class proxyClass)
Create a new proxy instance given a proxy class. |
static java.lang.Object |
newProxyInstance(java.lang.Class[] interfaces,
InvocationHandler h)
|
static java.lang.Object |
newProxyInstance(java.lang.Class interfaceType,
InvocationHandler h)
Throws a RuntimeException if there is a problem instantiating the new proxy instance. |
static java.lang.Object |
setInvocationHandler(java.lang.Object proxy,
InvocationHandler handler)
Casts the object passed in to the appropriate proxy type and sets the InvocationHandler assigned to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyManager()
| Method Detail |
|---|
public static ProxyFactory getDefaultFactory()
public static java.lang.String getDefaultFactoryName()
public static InvocationHandler getInvocationHandler(java.lang.Object proxy)
proxy - The Proxy object to retreive the InvocationHandler from.
public static java.lang.Object setInvocationHandler(java.lang.Object proxy,
InvocationHandler handler)
proxy - The Proxy object to retreive the InvocationHandler from.
public static java.lang.Class getProxyClass(java.lang.Class interfaceType)
throws java.lang.IllegalAccessException
interfaceType -
java.lang.IllegalAccessException
public static java.lang.Class getProxyClass(java.lang.Class[] interfaces)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public static java.lang.Object newProxyInstance(java.lang.Class interfaceType,
InvocationHandler h)
throws java.lang.IllegalAccessException
interfaceType - A bean's home or remote interface that the Proxy
object should implement.h -
java.lang.IllegalAccessException
public static java.lang.Object newProxyInstance(java.lang.Class[] interfaces,
InvocationHandler h)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic static boolean isProxyClass(java.lang.Class cl)
cl -
public static java.lang.Object newProxyInstance(java.lang.Class proxyClass)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic static java.lang.ClassLoader getContextClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||