public interface NotificationPublisher
Managed resources can access a
NotificationPublisherAware interface. After a particular
managed resource instance is registered with the
Spring will inject a
NotificationPublisher instance into it if that
resource implements the
Each managed resource instance will have a distinct instance of a
NotificationPublisher implementation. This instance will keep
track of all the
registered for a particular mananaged resource.
Any existing, user-defined MBeans should use standard JMX APIs for notification publication; this interface is intended for use only by Spring-created MBeans.
void sendNotification(Notification notification) throws UnableToSendNotificationException
Notificationto all registered
NotificationListeners. Managed resources are not responsible for managing the list of registered
NotificationListeners; that is performed automatically.
notification- the JMX Notification to send
UnableToSendNotificationException- if sending failed