|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.kernel.basic.BasicProxyManager
public class BasicProxyManager
Creates proxies that communicate directly with a Kernel located in the same JVM as the client.
Constructor Summary | |
---|---|
BasicProxyManager(Kernel kernel)
|
Method Summary | |
---|---|
Object |
createProxy(AbstractName target,
Class type)
|
Object |
createProxy(AbstractName target,
ClassLoader classLoader)
|
ProxyFactory |
createProxyFactory(Class[] types,
ClassLoader classLoader)
Creates a proxy factory for GBeans which will implement the specified types. |
void |
destroyProxy(Object proxy)
Cleans up and resources associated with the proxy |
protected void |
doDestroy(net.sf.cglib.proxy.MethodInterceptor methodInterceptor)
|
protected AbstractName |
getAbstractName(net.sf.cglib.proxy.MethodInterceptor methodInterceptor)
|
protected net.sf.cglib.proxy.Callback |
getMethodInterceptor(Class proxyType,
Kernel kernel,
AbstractName target)
|
AbstractName |
getProxyTarget(Object proxy)
Get the object name of the specified proxy TODO convert to abstractName |
boolean |
isProxy(Object proxy)
Is the specified object a proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicProxyManager(Kernel kernel)
Method Detail |
---|
public ProxyFactory createProxyFactory(Class[] types, ClassLoader classLoader)
ProxyManager
createProxyFactory
in interface ProxyManager
types
- the type of the proxies this factory should createclassLoader
- the class loader in which the proxy class will be registered
public Object createProxy(AbstractName target, Class type)
createProxy
in interface ProxyManager
public Object createProxy(AbstractName target, ClassLoader classLoader)
createProxy
in interface ProxyManager
public void destroyProxy(Object proxy)
ProxyManager
destroyProxy
in interface ProxyManager
proxy
- the proxy to destroypublic boolean isProxy(Object proxy)
ProxyManager
isProxy
in interface ProxyManager
proxy
- the object to determin if it is a proxy
public AbstractName getProxyTarget(Object proxy)
ProxyManager
getProxyTarget
in interface ProxyManager
proxy
- the proxy to get the target object name from
protected net.sf.cglib.proxy.Callback getMethodInterceptor(Class proxyType, Kernel kernel, AbstractName target)
protected void doDestroy(net.sf.cglib.proxy.MethodInterceptor methodInterceptor)
protected AbstractName getAbstractName(net.sf.cglib.proxy.MethodInterceptor methodInterceptor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |