public class JMXInvocationHandler extends Object implements ProxyContext, InvocationHandler, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ObjectName |
objectName
The object name of the MBean this proxy represents.
|
protected MBeanServer |
server
Reference to the MBean server this proxy connects to.
|
| Constructor and Description |
|---|
JMXInvocationHandler(MBeanServer server,
ObjectName name)
Constructs a new JMX MBean Proxy invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
ProxyExceptionHandler |
getExceptionHandler() |
MBeanServer |
getMBeanServer() |
ObjectName |
getObjectName() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
setExceptionHandler(ProxyExceptionHandler handler) |
String |
toString() |
protected MBeanServer server
protected ObjectName objectName
public JMXInvocationHandler(MBeanServer server, ObjectName name) throws MBeanProxyCreationException
server - reference to the MBean server this proxy connects toname - object name of the MBean this proxy representsMBeanProxyCreationException - wraps underlying JMX exceptions in
case the proxy creation failspublic Object invoke(Object proxy, Method method, Object[] args) throws Exception
invoke in interface InvocationHandlerExceptionpublic ProxyExceptionHandler getExceptionHandler()
public void setExceptionHandler(ProxyExceptionHandler handler)
setExceptionHandler in interface ProxyContextpublic MBeanServer getMBeanServer()
getMBeanServer in interface ProxyContextpublic ObjectName getObjectName()
getObjectName in interface ProxyContextCopyright © 2015 Seam Framework. All Rights Reserved.