当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 jmx API Documentation 英文版文档
MBeanServerInvocationHandler (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档
javax.management
Class MBeanServerInvocationHandler
java.lang.Object
javax.management.MBeanServerInvocationHandler
- All Implemented Interfaces:
- InvocationHandler
- public class MBeanServerInvocationHandler
- extends Object
- implements InvocationHandler
An invocation handler to proxy requests through the MBeanServer
- Version:
- $Revision: 1.5 $
- Author:
- Adrian Brock.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanServerInvocationHandler
public MBeanServerInvocationHandler(MBeanServerConnection connection,
ObjectName name)
- Construct an MBeanServerInvocationHandler for the
given connection and object name.
- Parameters:
connection
- the MBeanServerConnectionname
- the ObjectName of the bean
newProxyInstance
public static Object newProxyInstance(MBeanServerConnection connection,
ObjectName name,
Class interfaceClass,
boolean broadcaster)
- Constructs a new Proxy for the MBean using an
MBeanServerInvocationHandler.
- Parameters:
connection
- the MBeanServerConnectionname
- the ObjectName of the beaninterfaceClass
- the interface to exposebroadcaster
- pass true to expose the NotificationEmitter interface
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.