|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.MBeanProxyExt
A factory for producing MBean proxies.
Created proxies will also implement MBeanProxyInstance
allowing access to the proxies configuration.
Revisions:
20020321 Adrian Brock:
Method Summary | |
static Object |
create(Class intf,
ObjectName name)
Create an MBean proxy. |
static Object |
create(Class intf,
ObjectName name,
MBeanServer server)
Create an MBean proxy. |
static Object |
create(Class intf,
String name)
Create an MBean proxy. |
static Object |
create(Class intf,
String name,
MBeanServer server)
Create an MBean proxy. |
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. |
MBeanServer |
getMBeanProxyMBeanServer()
Return the MBeanServer for this proxy. |
ObjectName |
getMBeanProxyObjectName()
Return the ObjectName for this proxy. |
int |
hashCode()
As with equals, use the MBeanServer + ObjectName to calculate the hashCode |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown. |
String |
toString()
avoid the default printout, e.g. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public final ObjectName getMBeanProxyObjectName()
MBeanProxyInstance
getMBeanProxyObjectName
in interface MBeanProxyInstance
public final MBeanServer getMBeanProxyMBeanServer()
MBeanProxyInstance
getMBeanProxyMBeanServer
in interface MBeanProxyInstance
public boolean equals(Object that)
public int hashCode()
public String toString()
public static Object create(Class intf, String name) throws MalformedObjectNameException
intf
- The interface which the proxy will implement.name
- A string used to construct the ObjectName of the
MBean to proxy to.
MalformedObjectNameException
- Invalid object name.public static Object create(Class intf, String name, MBeanServer server) throws MalformedObjectNameException
intf
- The interface which the proxy will implement.name
- A string used to construct the ObjectName of the
MBean to proxy to.server
- The MBeanServer that contains the MBean to proxy to.
MalformedObjectNameException
- Invalid object name.public static Object create(Class intf, ObjectName name)
intf
- The interface which the proxy will implement.name
- The name of the MBean to proxy invocations to.
public static Object create(Class intf, ObjectName name, MBeanServer server)
intf
- The interface which the proxy will implement.name
- The name of the MBean to proxy invocations to.server
- The MBeanServer that contains the MBean to proxy to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |