public class RegistrableStandardEmitterMBean extends StandardMBean implements MBeanRegistration, NotificationEmitter
StandardMBean does not appear to delegate correctly to the underlying MBean implementation. Due to
issues surrounding the MBeanRegistration callback methods and NotificationEmmitter methods,
this subclass was introduced to force the delegation| Constructor and Description |
|---|
RegistrableStandardEmitterMBean(T impl,
Class<T> intf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
MBeanInfo |
getMBeanInfo() |
MBeanNotificationInfo[] |
getNotificationInfo() |
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
removeNotificationListener(NotificationListener listener) |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, setAttribute, setAttributes, setImplementationpublic RegistrableStandardEmitterMBean(T impl,
Class<T> intf)
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class StandardMBeanStandardMBean.getMBeanInfo()public void postDeregister()
postDeregister in interface MBeanRegistrationpostDeregister in class StandardMBeanMBeanRegistration.postDeregister()public void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpostRegister in class StandardMBeanMBeanRegistration.postRegister(java.lang.Boolean)public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationpreDeregister in class StandardMBeanExceptionMBeanRegistration.preDeregister()public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationpreRegister in class StandardMBeanExceptionMBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterNotificationBroadcaster.getNotificationInfo()public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionNotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.