|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.MBeanProxyExt
A factory for producing MBean proxies.
Created proxies will also implement MBeanProxyInstance
(src)
allowing access to the proxies configuration.
Revisions:
20020321 Adrian Brock:
Method Summary | |
static java.lang.Object |
create(java.lang.Class intf,
ObjectName (src) name)
Create an MBean proxy. |
static java.lang.Object |
create(java.lang.Class intf,
ObjectName (src) name,
MBeanServer (src) server)
Create an MBean proxy. |
static java.lang.Object |
create(java.lang.Class intf,
java.lang.String name)
Create an MBean proxy. |
static java.lang.Object |
create(java.lang.Class intf,
java.lang.String name,
MBeanServer (src) server)
Create an MBean proxy. |
boolean |
equals(java.lang.Object that)
We need to override this because by default equals returns false when called on the proxy object and then relayed here. |
MBeanServer (src) |
getMBeanProxyMBeanServer()
Return the MBeanServer for this proxy. |
ObjectName (src) |
getMBeanProxyObjectName()
Return the ObjectName for this proxy. |
int |
hashCode()
As with equals, use the MBeanServer + ObjectName to calculate the hashCode |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown. |
java.lang.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 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public final ObjectName (src) getMBeanProxyObjectName()
MBeanProxyInstance (src)
getMBeanProxyObjectName
in interface MBeanProxyInstance (src)
public final MBeanServer (src) getMBeanProxyMBeanServer()
MBeanProxyInstance (src)
getMBeanProxyMBeanServer
in interface MBeanProxyInstance (src)
public boolean equals(java.lang.Object that)
public int hashCode()
public java.lang.String toString()
public static java.lang.Object create(java.lang.Class intf, java.lang.String name) throws MalformedObjectNameException (src)
intf
- The interface which the proxy will implement.name
- A string used to construct the ObjectName of the
MBean to proxy to.
MalformedObjectNameException (src)
- Invalid object name.public static java.lang.Object create(java.lang.Class intf, java.lang.String name, MBeanServer (src) server) throws MalformedObjectNameException (src)
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 (src)
- Invalid object name.public static java.lang.Object create(java.lang.Class intf, ObjectName (src) name)
intf
- The interface which the proxy will implement.name
- The name of the MBean to proxy invocations to.
public static java.lang.Object create(java.lang.Class intf, ObjectName (src) name, MBeanServer (src) 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 (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |