public class

ModelMBeanNotificationPublisher

extends Object
implements NotificationPublisher
java.lang.Object
   ↳ org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher

Class Overview

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

Summary

Public Constructors
ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)
Create a new instance of the ModelMBeanNotificationPublisher class that will publish all Notifications to the supplied ModelMBean.
Public Methods
void sendNotification(Notification notification)
Send the supplied Notification using the wrapped ModelMBean instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.jmx.export.notification.NotificationPublisher

Public Constructors

public ModelMBeanNotificationPublisher (ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)

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

Parameters
modelMBean the target ModelMBean; must not be null
objectName the ObjectName of the source ModelMBean
managedResource the managed resource exposed by the supplied ModelMBean
Throws
IllegalArgumentException if any of the parameters is null

Public Methods

public void sendNotification (Notification notification)

Send the supplied Notification using the wrapped ModelMBean instance.

Parameters
notification the Notification to be sent
Throws
IllegalArgumentException if the supplied notification is null
UnableToSendNotificationException if the supplied notification could not be sent