public class EasyBeanNotificationWrapper extends EasyBeanWrapper implements javax.management.NotificationEmitter, EasyBeansNotifier
EasyBeansNotifierUser
or NotificationBroadcaster
or NotificationEmitter
.Constructor and Description |
---|
EasyBeanNotificationWrapper(EasyBeansNotifierUser bean) |
EasyBeanNotificationWrapper(javax.management.NotificationBroadcaster bean) |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
void |
notify(javax.management.Notification notification) |
void |
notify(java.lang.String type,
java.lang.String message) |
void |
removeNotificationListener(javax.management.NotificationListener listener) |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
getAttribute, getAttributes, getMBeanInfo, invoke, register, register, setAttribute, setAttributes, unregister, unregister
public EasyBeanNotificationWrapper(EasyBeansNotifierUser bean) throws InvalidEasyBeanNameException, InvalidEasyBeanAnnotation, InvalidEasyBeanOpenType
bean
- InvalidEasyBeanNameException
InvalidEasyBeanAnnotation
InvalidEasyBeanOpenType
public EasyBeanNotificationWrapper(javax.management.NotificationBroadcaster bean) throws InvalidEasyBeanNameException, InvalidEasyBeanAnnotation, InvalidEasyBeanOpenType
bean
- InvalidEasyBeanNameException
InvalidEasyBeanAnnotation
InvalidEasyBeanOpenType
public void notify(java.lang.String type, java.lang.String message)
notify
in interface EasyBeansNotifier
type
- The notification type.message
- The notification message.public void notify(javax.management.Notification notification)
notify
in interface EasyBeansNotifier
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
public void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
java.lang.IllegalArgumentException
public void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException