org.springframework.jmx.export.notification
Class ModelMBeanNotificationPublisher
java.lang.Object
   org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher
org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher
- All Implemented Interfaces: 
- NotificationPublisher
- public class ModelMBeanNotificationPublisher 
- extends Object- implements NotificationPublisher
NotificationPublisher implementation that uses the infrastructure
 provided by the ModelMBean interface to track
 javax.management.NotificationListeners
 and send Notifications to those listeners.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller, Rick Evans
- See Also:
- ModelMBeanNotificationBroadcaster,- NotificationPublisherAware
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ModelMBeanNotificationPublisher
public ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean,
                                       ObjectName objectName,
                                       Object managedResource)
- Create a new instance of the ModelMBeanNotificationPublisherclass
 that will publish allNotificationsto the suppliedModelMBean.
 
- Parameters:
- modelMBean- the target- ModelMBean; must not be- null
- objectName- the- ObjectNameof the source- ModelMBean
- managedResource- the managed resource exposed by the supplied- ModelMBean
- Throws:
- IllegalArgumentException- if any of the parameters is- null
 
sendNotification
public void sendNotification(Notification notification)
- Send the supplied Notificationusing the wrappedModelMBeaninstance.
 
- 
- Specified by:
- sendNotificationin interface- NotificationPublisher
 
- 
- Parameters:
- notification- the- Notificationto be sent
- Throws:
- IllegalArgumentException- if the supplied- notificationis- null
- UnableToSendNotificationException- if the supplied- notificationcould not be sent
 
Copyright © 2002-2008 The Spring Framework.