当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
ModelMBeanNotificationPublisher (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
org.springframework.jmx.export.notification
Class ModelMBeanNotificationPublisher
java.lang.Object
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, Rick Evans
- See Also:
ModelMBean
,
NotificationPublisherAware
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelMBeanNotificationPublisher
public ModelMBeanNotificationPublisher(ModelMBean modelMBean,
ObjectName objectName,
Object managedResource)
- Creates 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
sendNotification
public void sendNotification(Notification notification)
- Sends the supplied
Notification
using the wrapped
ModelMBean
instance.
- Specified by:
sendNotification
in interface NotificationPublisher
- Parameters:
notification
- the Notification
to be sent
- Throws:
IllegalArgumentException
- if the supplied notification
is null
UnableToSendNotificationException
- if the supplied notification
could not be sent
Copyright © 2002-2007 The Spring Framework.