public class JmxInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Constructor and Description |
---|
JmxInvocationHandler(javax.management.MBeanServer mbeanServer,
java.lang.ClassLoader loader,
javax.management.ObjectName objectName)
Creates the invocation handler.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public JmxInvocationHandler(javax.management.MBeanServer mbeanServer, java.lang.ClassLoader loader, javax.management.ObjectName objectName)
public static java.lang.Object newProxyInstance(javax.management.MBeanServer server, java.lang.ClassLoader loader, javax.management.ObjectName objectName, java.lang.Class interfaceClass, boolean notificationBroadcaster)
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
proxy
- the proxy object to invokemethod
- the method to callargs
- the arguments to the proxy objectjava.lang.Throwable