|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.util.proxy.ProxyManager
public class ProxyManager
| Constructor Summary | |
|---|---|
ProxyManager()
|
|
| Method Summary | |
|---|---|
static void |
checkDefaultFactory()
|
static ProxyFactory |
getDefaultFactory()
|
static String |
getDefaultFactoryName()
|
static ProxyFactory |
getFactory(String factoryName)
|
static InvocationHandler |
getInvocationHandler(Object proxy)
Casts the object passed in to the appropriate proxy type and retreives the InvocationHandler assigned to it. |
static Class |
getProxyClass(Class interfaceType)
Loads and returns the proxy implementation for the specified interface. |
static Class |
getProxyClass(Class[] interfaces)
|
static boolean |
isProxyClass(Class cl)
|
static Object |
newProxyInstance(Class proxyClass)
Create a new proxy instance given a proxy class. |
static Object |
newProxyInstance(Class[] interfaces,
InvocationHandler h)
|
static Object |
newProxyInstance(Class interfaceType,
InvocationHandler h)
Throws a RuntimeException if there is a problem instantiating the new proxy instance. |
static ProxyFactory |
registerFactory(String factoryName,
ProxyFactory factory)
|
static ProxyFactory |
setDefaultFactory(String factoryName)
Sets the default factory. |
static Object |
setInvocationHandler(Object proxy,
InvocationHandler handler)
Casts the object passed in to the appropriate proxy type and sets the InvocationHandler assigned to it. |
static ProxyFactory |
unregisterFactory(String factoryName)
|
| 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 registerFactory(String factoryName,
ProxyFactory factory)
public static ProxyFactory unregisterFactory(String factoryName)
public static void checkDefaultFactory()
public static ProxyFactory getFactory(String factoryName)
public static ProxyFactory setDefaultFactory(String factoryName)
factoryName - public static ProxyFactory getDefaultFactory()
public static String getDefaultFactoryName()
public static InvocationHandler getInvocationHandler(Object proxy)
proxy - The Proxy object to retreive the InvocationHandler from.
public static Object setInvocationHandler(Object proxy,
InvocationHandler handler)
proxy - The Proxy object to retreive the InvocationHandler from.
public static Class getProxyClass(Class interfaceType)
throws IllegalAccessException
interfaceType -
IllegalAccessException
public static Class getProxyClass(Class[] interfaces)
throws IllegalAccessException
IllegalAccessException
public static Object newProxyInstance(Class interfaceType,
InvocationHandler h)
throws IllegalAccessException
interfaceType - A bean's home or remote interface that the Proxy
object should implement.h -
IllegalAccessException
public static Object newProxyInstance(Class[] interfaces,
InvocationHandler h)
throws IllegalAccessException
IllegalAccessExceptionpublic static boolean isProxyClass(Class cl)
cl -
public static Object newProxyInstance(Class proxyClass)
throws IllegalAccessException
IllegalAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||