org.apache.geronimo.kernel.proxy
Interface ProxyManager

All Known Implementing Classes:
BasicProxyManager, JMXProxyManager

public interface ProxyManager

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

See Also:
GeronimoManagedBean

Method Summary
 Object createProxy(AbstractName target, Class type)
           
 Object createProxy(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
 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

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

Object createProxy(AbstractName target,
                   ClassLoader loader)

createProxy

Object createProxy(AbstractName target,
                   Class type)

destroyProxy

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

Parameters:
proxy - the proxy to destroy

isProxy

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

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.