org.springframework.jmx.export.notification

## 类 ModelMBeanNotificationPublisher

- java.lang.Object
- - org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher

- 所有已实现的接口:
    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.
  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller, Rick Evans
  另请参阅:
    `ModelMBeanNotificationBroadcaster`, `NotificationPublisherAware`

- - ### 构造器概要

    构造器
    构造器和说明
    `ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)` Create a new instance of the `ModelMBeanNotificationPublisher` class that will publish all `Notifications` to the supplied `ModelMBean`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `sendNotification(Notification notification)` Send the supplied `Notification` using the wrapped `ModelMBean` instance.

    - ### 从类继承的方法 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 `ModelMBeanNotificationPublisher` class that will publish all `Notifications` to the supplied `ModelMBean`.
      参数:
        `modelMBean` - the target `ModelMBean`; must not be `null`
        `objectName` - the `ObjectName` of the source `ModelMBean`
        `managedResource` - the managed resource exposed by the supplied `ModelMBean`
      抛出:
        `IllegalArgumentException` - if any of the parameters is `null`

  - ### 方法详细资料

    - #### sendNotification

          public void sendNotification(Notification notification)

      Send the supplied `Notification` using the wrapped `ModelMBean` instance.
      指定者:
        `sendNotification` 在接口中 `NotificationPublisher`
      参数:
        `notification` - the `Notification` to be sent
      抛出:
        `IllegalArgumentException` - if the supplied `notification` is `null`
        `UnableToSendNotificationException` - if the supplied `notification` could not be sent