org.jboss.mx.util
Class JMXInvocationHandler
java.lang.Object
org.jboss.mx.util.JMXInvocationHandler
- All Implemented Interfaces:
- InvocationHandler, ProxyContext, Serializable
- public class JMXInvocationHandler
- extends Object
- implements ProxyContext, InvocationHandler, Serializable
Invocation handler for MBean proxies.
- Version:
- $Revision: 1.3 $
- Author:
- Juha Lindfors.
- See Also:
- Serialized Form
Field Summary |
protected javax.management.ObjectName |
objectName
The object name of the MBean this proxy represents. |
protected javax.management.MBeanServer |
server
Reference to the MBean server this proxy connects to. |
Constructor Summary |
JMXInvocationHandler(javax.management.MBeanServer server,
javax.management.ObjectName name)
Constructs a new JMX MBean Proxy invocation handler. |
server
protected javax.management.MBeanServer server
- Reference to the MBean server this proxy connects to.
objectName
protected javax.management.ObjectName objectName
- The object name of the MBean this proxy represents.
JMXInvocationHandler
public JMXInvocationHandler(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws MBeanProxyCreationException
- 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
- wraps underlying JMX exceptions in
case the proxy creation fails
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Exception
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Exception
getExceptionHandler
public ProxyExceptionHandler getExceptionHandler()
setExceptionHandler
public void setExceptionHandler(ProxyExceptionHandler handler)
- Specified by:
setExceptionHandler
in interface ProxyContext
getMBeanServer
public javax.management.MBeanServer getMBeanServer()
- Specified by:
getMBeanServer
in interface ProxyContext
getObjectName
public javax.management.ObjectName getObjectName()
- Specified by:
getObjectName
in interface ProxyContext
toString
public String toString()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.