org.jboss.mx.util
Class MBeanProxy

java.lang.Object
  extended byorg.jboss.mx.util.MBeanProxy

public class MBeanProxy
extends java.lang.Object

See Also:
Proxy

Constructor Summary
MBeanProxy()
           
 
Method Summary
static java.lang.Object create(java.lang.Class instance, java.lang.Class intrface, ObjectName (src)  name, MBeanServer (src)  server)
          Convenience method for registering an MBean and retrieving a proxy for it.
static java.lang.Object create(java.lang.Class instance, java.lang.Class intrface, ObjectName (src)  name, java.lang.String agentID)
          Convenience method for registering an MBean and retrieving a proxy for it.
static java.lang.Object get(java.lang.Class intrface, ObjectName (src)  name, MBeanServer (src)  server)
          Creates a proxy to an MBean in the given MBean server.
static java.lang.Object get(java.lang.Class intrface, ObjectName (src)  name, java.lang.String agentID)
          Creates a proxy to an MBean in the given MBean server.
static java.lang.Object get(ObjectName (src)  name, MBeanServer (src)  server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanProxy

public MBeanProxy()
Method Detail

get

public static java.lang.Object get(java.lang.Class intrface,
                                   ObjectName (src)  name,
                                   java.lang.String agentID)
                            throws MBeanProxyCreationException (src) 
Creates a proxy to an MBean in the given MBean server.

Parameters:
intrface - the interface this proxy implements
name - object name of the MBean this proxy connects to
agentID - agent ID of the MBean server this proxy connects to
Returns:
proxy instance
Throws:
MBeanProxyCreationException (src) - if the proxy could not be created

get

public static java.lang.Object get(java.lang.Class intrface,
                                   ObjectName (src)  name,
                                   MBeanServer (src)  server)
                            throws MBeanProxyCreationException (src) 
Creates a proxy to an MBean in the given MBean server.

Parameters:
intrface - the interface this proxy implements
name - object name of the MBean this proxy connects to
server - MBean server this proxy connects to
Returns:
proxy instance
Throws:
MBeanProxyCreationException (src) - if the proxy could not be created

get

public static java.lang.Object get(ObjectName (src)  name,
                                   MBeanServer (src)  server)
                            throws MBeanProxyCreationException (src) 
Throws:
MBeanProxyCreationException (src)

create

public static java.lang.Object create(java.lang.Class instance,
                                      java.lang.Class intrface,
                                      ObjectName (src)  name,
                                      java.lang.String agentID)
                               throws MBeanProxyCreationException (src) 
Convenience method for registering an MBean and retrieving a proxy for it.

Parameters:
instance - MBean instance to be registered
intrface - the interface this proxy implements
name - object name of the MBean
agentID - agent ID of the MBean server this proxy connects to
Returns:
proxy instance
Throws:
MBeanProxyCreationException (src) - if the proxy could not be created

create

public static java.lang.Object create(java.lang.Class instance,
                                      java.lang.Class intrface,
                                      ObjectName (src)  name,
                                      MBeanServer (src)  server)
                               throws MBeanProxyCreationException (src) 
Convenience method for registering an MBean and retrieving a proxy for it.

Parameters:
instance - MBean instance to be registered
intrface - the interface this proxy implements
name - object name of the MBean
server - MBean server this proxy connects to
Throws:
MBeanProxyCreationException (src) - if the proxy could not be created