org.apache.geronimo.kernel.proxy
Interface ProxyManager

All Known Implementing Classes:
BasicProxyManager

public interface ProxyManager

Manages kernel proxies. Note that all proxies will include an implementation of GeronimoManagedBean.

Version:
$Rev: 396405 $ $Date: 2006-04-24 05:53:26 +0200 (Mon, 24 Apr 2006) $
See Also:
GeronimoManagedBean

Method Summary
 Object createProxy(org.apache.geronimo.gbean.AbstractName target, Class type)
           
 Object createProxy(org.apache.geronimo.gbean.AbstractName target, ClassLoader loader)
           
 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
 org.apache.geronimo.gbean.AbstractName getProxyTarget(Object proxy)
          Get the object name of the specified proxy TODO convert to abstractName
 boolean isProxy(Object object)
          Is the specified object a proxy
 

Method Detail

createProxyFactory

public ProxyFactory createProxyFactory(Class[] types,
                                       ClassLoader classLoader)
Creates a proxy factory for GBeans which will implement the specified types. The proxy class will be created within the specified class loader. All of the specified types must be visible from the class loader.

Parameters:
types - the type of the proxies this factory should create
classLoader - the class loader in which the proxy class will be registered
Returns:
the proxy factory

createProxy

public Object createProxy(org.apache.geronimo.gbean.AbstractName target,
                          ClassLoader loader)

createProxy

public Object createProxy(org.apache.geronimo.gbean.AbstractName target,
                          Class type)

destroyProxy

public void destroyProxy(Object proxy)
Cleans up and resources associated with the proxy

Parameters:
proxy - the proxy to destroy

isProxy

public boolean isProxy(Object object)
Is the specified object a proxy

Parameters:
object - the object to determin if it is a proxy
Returns:
true if the object is a proxy

getProxyTarget

public org.apache.geronimo.gbean.AbstractName getProxyTarget(Object proxy)
Get the object name of the specified proxy TODO convert to abstractName

Parameters:
proxy - the proxy to get the target object name from
Returns:
the object name of the target


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.