public class NotificationListenerBean extends NotificationListenerHolder implements InitializingBean
NotificationListener
SE、NotificationFilter
SE、任意のハンドバックオブジェクトを集約するヘルパークラス。 また、カプセル化された NotificationListener
SE を、mappedObjectNames
プロパティを介して Notifications
SE を受信する任意の数の MBean に関連付けるためのサポートも提供します。
メモ: このクラスは、JMX オブジェクト名を指定する代わりに、Spring Bean 名を "mappedObjectNames"
としてもサポートします。このような Bean 名では、同じ MBeanExporter
によってエクスポートされた Bean のみがサポートされることに注意してください。
MBeanExporter.setNotificationListeners(org.springframework.jmx.export.NotificationListenerBean...)
mappedObjectNames
コンストラクターと説明 |
---|
NotificationListenerBean() NotificationListenerBean クラスの新しいインスタンスを作成します。 |
NotificationListenerBean(NotificationListenerSE notificationListener) NotificationListenerBean クラスの新しいインスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public NotificationListenerBean()
NotificationListenerBean
クラスの新しいインスタンスを作成します。public NotificationListenerBean(NotificationListenerSE notificationListener)
NotificationListenerBean
クラスの新しいインスタンスを作成します。notificationListener
- カプセル化されたリスナー public void afterPropertiesSet()
InitializingBean
BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含 BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean
の afterPropertiesSet