org.springframework.jmx.export

## 类 NotificationListenerBean

- java.lang.Object
- - org.springframework.jmx.support.NotificationListenerHolder
  - - org.springframework.jmx.export.NotificationListenerBean

- 所有已实现的接口:
    org.springframework.beans.factory.InitializingBean

      public class NotificationListenerBean
      extends NotificationListenerHolder
      implements org.springframework.beans.factory.InitializingBean

  Helper class that aggregates a `NotificationListener`, a `NotificationFilter`, and an arbitrary handback object.

  Also provides support for associating the encapsulated `NotificationListener` with any number of MBeans from which it wishes to receive `Notifications` via the `mappedObjectNames` property.

  Note: This class supports Spring bean names as `"mappedObjectNames"` as well, as alternative to specifying JMX object names. Note that only beans exported by the same `MBeanExporter` are supported for such bean names.

  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller
  另请参阅:
    `MBeanExporter.setNotificationListeners(org.springframework.jmx.export.NotificationListenerBean...)`

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.jmx.support.NotificationListenerHolder

      `mappedObjectNames`

  - ### 构造器概要

    构造器
    构造器和说明
    `NotificationListenerBean()` Create a new instance of the `NotificationListenerBean` class.
    `NotificationListenerBean(NotificationListener notificationListener)` Create a new instance of the `NotificationListenerBean` class.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `afterPropertiesSet()`

    - ### 从类继承的方法 org.springframework.jmx.support.NotificationListenerHolder

      `equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### NotificationListenerBean

          public NotificationListenerBean()

      Create a new instance of the `NotificationListenerBean` class.

    - #### NotificationListenerBean

          public NotificationListenerBean(NotificationListener notificationListener)

      Create a new instance of the `NotificationListenerBean` class.
      参数:
        `notificationListener` - the encapsulated listener

  - ### 方法详细资料

    - #### afterPropertiesSet

          public void afterPropertiesSet()

      指定者:
        `afterPropertiesSet` 在接口中 `org.springframework.beans.factory.InitializingBean`