org.jboss.mx.util
Class JMXInvocationHandler

java.lang.Object
  extended byorg.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

Field Summary
protected  ObjectName (src) objectName
          The object name of the MBean this proxy represents.
protected  MBeanServer (src) server
          Reference to the MBean server this proxy connects to.
 
Constructor Summary
JMXInvocationHandler(MBeanServer (src)  server, ObjectName (src)  name)
          Constructs a new JMX MBean Proxy invocation handler.
 
Method Summary
 ProxyExceptionHandler (src) getExceptionHandler()
           
 MBeanServer (src) getMBeanServer()
           
 ObjectName (src) getObjectName()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void setExceptionHandler(ProxyExceptionHandler (src)  handler)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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 to
name - object name of the MBean this proxy represents
Throws:
MBeanProxyCreationException (src) - wraps underlying JMX exceptions in case the proxy creation fails
Method Detail

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()