org.apache.geronimo.kernel.basic
Class BasicProxyManager

java.lang.Object
  extended byorg.apache.geronimo.kernel.basic.BasicProxyManager
All Implemented Interfaces:
ProxyManager

public class BasicProxyManager
extends java.lang.Object
implements ProxyManager

Version:
$Rev$ $Date$

Nested Class Summary
private  class BasicProxyManager.ManagedProxyFactory
           
 
Field Summary
private  java.util.IdentityHashMap interceptors
           
private  Kernel kernel
           
 
Constructor Summary
BasicProxyManager(Kernel kernel)
           
 
Method Summary
 java.lang.Object createProxy(javax.management.ObjectName target, java.lang.Class type)
          Create a proxy implementing the class to the specified target.
 ProxyFactory createProxyFactory(java.lang.Class type)
          Create a proxy factory which will generate proxies of the specified type
 void destroyProxy(java.lang.Object proxy)
          Cleans up and resources associated with the proxy
 javax.management.ObjectName getProxyTarget(java.lang.Object proxy)
          Get the object name of the specified proxy
 boolean isProxy(java.lang.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
 

Field Detail

kernel

private final Kernel kernel

interceptors

private final java.util.IdentityHashMap interceptors
Constructor Detail

BasicProxyManager

public BasicProxyManager(Kernel kernel)
Method Detail

createProxyFactory

public ProxyFactory createProxyFactory(java.lang.Class type)
Description copied from interface: ProxyManager
Create a proxy factory which will generate proxies of the specified type

Specified by:
createProxyFactory in interface ProxyManager
Parameters:
type - the type of the proxies to create
Returns:
the proxy factory

createProxy

public java.lang.Object createProxy(javax.management.ObjectName target,
                                    java.lang.Class type)
Description copied from interface: ProxyManager
Create a proxy implementing the class to the specified target.

Specified by:
createProxy in interface ProxyManager
Parameters:
target - the target object name
type - the type of the proxy to create
Returns:
the proxy

destroyProxy

public void destroyProxy(java.lang.Object proxy)
Description copied from interface: ProxyManager
Cleans up and resources associated with the proxy

Specified by:
destroyProxy in interface ProxyManager
Parameters:
proxy - the proxy to destroy

isProxy

public boolean isProxy(java.lang.Object proxy)
Description copied from interface: ProxyManager
Is the specified object a proxy

Specified by:
isProxy in interface ProxyManager
Parameters:
proxy - the object to determin if it is a proxy
Returns:
true if the object is a proxy

getProxyTarget

public javax.management.ObjectName getProxyTarget(java.lang.Object proxy)
Description copied from interface: ProxyManager
Get the object name of the specified proxy

Specified by:
getProxyTarget in interface ProxyManager
Parameters:
proxy - the proxy to get the target object name from
Returns:
the object name of the target


Copyright © 2005 Apache Software Foundation. All Rights Reserved.