com.caucho.jmx
Class JmxInvocationHandler

java.lang.Object
  extended by com.caucho.jmx.JmxInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class JmxInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Proxy hander for mbeans.


Constructor Summary
JmxInvocationHandler(javax.management.MBeanServer mbeanServer, java.lang.ClassLoader loader, javax.management.ObjectName objectName)
          Creates the invocation handler.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Handles the object invocation.
static java.lang.Object newProxyInstance(javax.management.MBeanServer server, java.lang.ClassLoader loader, javax.management.ObjectName objectName, java.lang.Class interfaceClass, boolean notificationBroadcaster)
          Creates a new proxy instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxInvocationHandler

public JmxInvocationHandler(javax.management.MBeanServer mbeanServer,
                            java.lang.ClassLoader loader,
                            javax.management.ObjectName objectName)
Creates the invocation handler.

Method Detail

newProxyInstance

public static java.lang.Object newProxyInstance(javax.management.MBeanServer server,
                                                java.lang.ClassLoader loader,
                                                javax.management.ObjectName objectName,
                                                java.lang.Class interfaceClass,
                                                boolean notificationBroadcaster)
Creates a new proxy instance.


invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Handles the object invocation.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - the proxy object to invoke
method - the method to call
args - the arguments to the proxy object
Throws:
java.lang.Throwable