类 NotificationListenerHolder
java.lang.Object
cn.taketoday.jmx.support.NotificationListenerHolder
Helper class that aggregates a
NotificationListener,
a NotificationFilter, and an arbitrary handback
object, as well as the names of MBeans from which the listener wishes
to receive Notifications.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanReturn the (arbitrary) object that will be 'handed back' as-is by anNotificationBroadcasterwhen notifying anyNotificationListener.Return theNotificationFilterassociated with the encapsulatedNotificationListener.Get theNotificationListener.Return the list ofObjectNameString representations for which the encapsulatedNotificationFilterwill be registered as a listener forNotifications.inthashCode()voidsetHandback(Object handback) Set the (arbitrary) object that will be 'handed back' as-is by anNotificationBroadcasterwhen notifying anyNotificationListener.voidsetMappedObjectName(Object mappedObjectName) Set theObjectName-style name of the single MBean that the encapsulatedNotificationFilterwill be registered with to listen forNotifications.voidsetMappedObjectNames(Object... mappedObjectNames) Set an array ofObjectName-style names of the MBeans that the encapsulatedNotificationFilterwill be registered with to listen forNotifications.voidsetNotificationFilter(NotificationFilter notificationFilter) Set theNotificationFilterassociated with the encapsulatedNotificationFilter.voidsetNotificationListener(NotificationListener notificationListener) Set theNotificationListener.
-
字段详细资料
-
mappedObjectNames
-
-
构造器详细资料
-
NotificationListenerHolder
public NotificationListenerHolder()
-
-
方法详细资料
-
setNotificationListener
Set theNotificationListener. -
getNotificationListener
Get theNotificationListener. -
setNotificationFilter
-
getNotificationFilter
-
setHandback
Set the (arbitrary) object that will be 'handed back' as-is by anNotificationBroadcasterwhen notifying anyNotificationListener.- 参数:
handback- the handback object (can benull)- 另请参阅:
-
getHandback
Return the (arbitrary) object that will be 'handed back' as-is by anNotificationBroadcasterwhen notifying anyNotificationListener.- 返回:
- the handback object (may be
null) - 另请参阅:
-
setMappedObjectName
Set theObjectName-style name of the single MBean that the encapsulatedNotificationFilterwill be registered with to listen forNotifications. Can be specified asObjectNameinstance or asString. -
setMappedObjectNames
Set an array ofObjectName-style names of the MBeans that the encapsulatedNotificationFilterwill be registered with to listen forNotifications. Can be specified asObjectNameinstances or asStrings. -
getResolvedObjectNames
Return the list ofObjectNameString representations for which the encapsulatedNotificationFilterwill be registered as a listener forNotifications.- 抛出:
MalformedObjectNameException- if anObjectNameis malformed
-
equals
-
hashCode
public int hashCode()
-