org.jboss.mx.util
Class JMXInvocationHandler
java.lang.Object
org.jboss.mx.util.JMXInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, ProxyContext (src) , java.io.Serializable
- public class JMXInvocationHandler
- extends java.lang.Object
- implements ProxyContext (src) , java.lang.reflect.InvocationHandler, java.io.Serializable
Invocation handler for MBean proxies.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
server
protected MBeanServer (src) server
- Reference to the MBean server this proxy connects to.
objectName
protected ObjectName (src) objectName
- The object name of the MBean this proxy represents.
JMXInvocationHandler
public JMXInvocationHandler(MBeanServer (src) server,
ObjectName (src) name)
throws MBeanProxyCreationException (src)
- Constructs a new JMX MBean Proxy invocation handler.
- Parameters:
server
- reference to the MBean server this proxy connects toname
- object name of the MBean this proxy represents
- Throws:
MBeanProxyCreationException (src)
- wraps underlying JMX exceptions in
case the proxy creation fails
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Exception
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Exception
getExceptionHandler
public ProxyExceptionHandler (src) getExceptionHandler()
setExceptionHandler
public void setExceptionHandler(ProxyExceptionHandler (src) handler)
- Specified by:
setExceptionHandler
in interface ProxyContext (src)
getMBeanServer
public MBeanServer (src) getMBeanServer()
- Specified by:
getMBeanServer
in interface ProxyContext (src)
getObjectName
public ObjectName (src) getObjectName()
- Specified by:
getObjectName
in interface ProxyContext (src)
toString
public java.lang.String toString()