org.jboss.seam.jmx
Class JMXInvocationHandler
java.lang.Object
org.jboss.seam.jmx.JMXInvocationHandler
- All Implemented Interfaces:
- java.io.Serializable, java.lang.reflect.InvocationHandler, ProxyContext
public class JMXInvocationHandler
- extends java.lang.Object
- implements ProxyContext, java.lang.reflect.InvocationHandler, java.io.Serializable
Invocation handler for MBean proxies.
- Version:
- $Revision: 81019 $
- 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 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 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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011 Seam Framework. All Rights Reserved.