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: 693702 $ $Date: 2008-09-10 12:15:55 +0800 (Wed, 10 Sep 2008) $
See Also:
GeronimoManagedBean

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

<T> T createProxy(AbstractName target,
                  Class<T> 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-2013 The Apache Geronimo development community. All Rights Reserved.