spring-framework / org.springframework.jmx.export.notification / ModelMBeanNotificationPublisher

ModelMBeanNotificationPublisher

open class ModelMBeanNotificationPublisher : NotificationPublisher

NotificationPublisher implementation that uses the infrastructure provided by the ModelMBean interface to track javax.management.NotificationListener and send Notification to those listeners.

Author
Rob Harrop

Author
Juergen Hoeller

Author
Rick Evans

Since
2.0

See Also
javax.management.modelmbean.ModelMBeanNotificationBroadcasterNotificationPublisherAware

Constructors

<init>

ModelMBeanNotificationPublisher(modelMBean: ModelMBeanNotificationBroadcaster, objectName: ObjectName, managedResource: Any)

Create a new instance of the ModelMBeanNotificationPublisher class that will publish all javax.management.Notification to the supplied ModelMBean.

Functions

sendNotification

open fun sendNotification(notification: Notification): Unit

Send the supplied Notification using the wrapped ModelMBean instance.