Top Description Methods
org.springframework.jmx.export.notification

public Interface NotificationPublisher

Known Direct Implementers
org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher
Annotations
@FunctionalInterface
Imports
javax.management.Notification

Simple interface allowing Spring-managed MBeans to publish JMX notifications without being aware of how those notifications are being transmitted to the javax.management.MBeanServer.

Managed resources can access a NotificationPublisher by implementing the NotificationPublisherAware interface. After a particular managed resource instance is registered with the javax.management.MBeanServer, Spring will inject a NotificationPublisher instance into it if that resource implements the NotificationPublisherAware interface.

Each managed resource instance will have a distinct instance of a NotificationPublisher implementation. This instance will keep track of all the NotificationListeners registered for a particular managed 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.

Author
Rob Harrop
Since
2.0
See Also
NotificationPublisherAware, org.springframework.jmx.export.MBeanExporter

Method Summary

Modifier and TypeMethod and Description
public void
sendNotification(Notification
the JMX Notification to send
notification
)

Send the specified javax.management.Notification to all registered NotificationListeners.

Method Detail

sendNotificationback to summary
public void sendNotification(Notification notification) throws UnableToSendNotificationException

Send the specified javax.management.Notification to all registered NotificationListeners. Managed resources are not responsible for managing the list of registered NotificationListeners; that is performed automatically.

Parameters
notification:Notification

the JMX Notification to send

Exceptions
UnableToSendNotificationException:
if sending failed