org.apache.geronimo.kernel.jmx
Class MBeanProxyFactory

java.lang.Object
  extended byorg.apache.geronimo.kernel.jmx.MBeanProxyFactory

public final class MBeanProxyFactory
extends Object

MBeanProxyFactory creates a dynamic proxy to an MBean by ObjectName. The interface type and object existance are enforced during construction.

Version:
$Revision: 1.10 $ $Date: 2004/06/02 06:49:23 $

Constructor Summary
MBeanProxyFactory()
           
 
Method Summary
static Object getProxy(Class type, javax.management.MBeanServerConnection server, javax.management.ObjectName objectName)
          Creates an MBean proxy using the specified interface to the objectName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanProxyFactory

public MBeanProxyFactory()
Method Detail

getProxy

public static Object getProxy(Class type,
                              javax.management.MBeanServerConnection server,
                              javax.management.ObjectName objectName)
Creates an MBean proxy using the specified interface to the objectName.

Parameters:
type - the interface to implement for this proxy
server - the MBeanServer in which the object is registered
objectName - the objectName of the MBean to proxy
Returns:
the new MBean proxy, which implemnts the specified interface


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