public interface NotificationPublisher
Managed resources can access a NotificationPublisher
by
implementing the NotificationPublisherAware
interface. After a particular
managed resource instance is registered with the <code>MBeanServer</code>,
Spring will inject a NotificationPublisher
instance into it if that
resource implements the NotificationPublisherAware
inteface.
Each managed resource instance will have a distinct instance of a
NotificationPublisher
implementation. This instance will keep
track of all the <code>NotificationListeners</code>
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.
NotificationPublisherAware
,
MBeanExporter
Modifier and Type | Method and Description |
---|---|
void |
sendNotification(javax.management.Notification notification)
Send the specified <code>Notification</code> to all registered
<code>NotificationListeners</code>.
|
void sendNotification(javax.management.Notification notification) throws UnableToSendNotificationException
notification
- the JMX Notification to sendUnableToSendNotificationException
- if sending failed