Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.mx » util » [javadoc | source]
org.jboss.mx.util
public class: MBeanProxyExt [javadoc | source]
java.lang.Object
   org.jboss.mx.util.MBeanProxyExt

All Implemented Interfaces:
    Externalizable, InvocationHandler, MBeanProxyInstance

A factory for producing MBean proxies.

Created proxies will also implement org.jboss.mx.util.MBeanProxyInstance allowing access to the proxies configuration.

Field Summary
public static  MBeanServerConnection remote    The remote MBeanServerConnection 
Constructor:
 public MBeanProxyExt() 
 MBeanProxyExt(ObjectName name,
    MBeanServer server,
    boolean lazyInit) 
    Construct an MBeanProxy.
Method from org.jboss.mx.util.MBeanProxyExt Summary:
create,   create,   create,   create,   create,   equals,   getMBeanProxyMBeanServer,   getMBeanProxyMBeanServerConnection,   getMBeanProxyObjectName,   hashCode,   invoke,   readExternal,   toString,   writeExternal
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mx.util.MBeanProxyExt Detail:
 public static Object create(Class intf,
    String name) throws MalformedObjectNameException 
    Create an MBean proxy.
 public static Object create(Class intf,
    ObjectName name) 
    Create an MBean proxy.
 public static Object create(Class intf,
    String name,
    MBeanServer server) throws MalformedObjectNameException 
    Create an MBean proxy.
 public static Object create(Class intf,
    ObjectName name,
    MBeanServer server) 
    Create an MBean proxy.
 public static Object create(Class intf,
    ObjectName name,
    MBeanServer server,
    boolean lazyInit) 
    Create an MBean proxy.
 public boolean equals(Object that) 
    We need to override this because by default equals returns false when called on the proxy object and then relayed here.
 public final MBeanServer getMBeanProxyMBeanServer() 
 public final MBeanServerConnection getMBeanProxyMBeanServerConnection() 
 public final ObjectName getMBeanProxyObjectName() 
 public int hashCode() 
    As with equals, use the MBeanServer + ObjectName to calculate the hashCode
 public Object invoke(Object proxy,
    Method method,
    Object[] args) throws Throwable 
    Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown.
 public  void readExternal(ObjectInput in) throws ClassNotFoundException, IOException 
 public String toString() 
    avoid the default printout, e.g. org.jboss.mx.util.MBeanProxyExt@120540c
 public  void writeExternal(ObjectOutput out) throws IOException