public class NotificationListenerHolder
extends java.lang.Object
NotificationListenerBean
,
NotificationListenerRegistrar
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
handback |
protected java.util.Set<java.lang.Object> |
mappedObjectNames |
private javax.management.NotificationFilter |
notificationFilter |
private javax.management.NotificationListener |
notificationListener |
Constructor and Description |
---|
NotificationListenerHolder() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Object |
getHandback()
Return the (arbitrary) object that will be 'handed back' as-is by an
<code>NotificationBroadcaster</code> when notifying
any <code>NotificationListener</code>.
|
javax.management.NotificationFilter |
getNotificationFilter()
Return the <code>NotificationFilter</code> associated
with the encapsulated
NotificationFilter . |
javax.management.NotificationListener |
getNotificationListener()
Get the <code>NotificationListener</code>.
|
javax.management.ObjectName[] |
getResolvedObjectNames()
Return the list of <code>ObjectName</code> String representations for
which the encapsulated
NotificationFilter will
be registered as a listener for <code>Notifications</code>. |
int |
hashCode() |
void |
setHandback(java.lang.Object handback)
Set the (arbitrary) object that will be 'handed back' as-is by an
<code>NotificationBroadcaster</code> when notifying
any <code>NotificationListener</code>.
|
void |
setMappedObjectName(java.lang.Object mappedObjectName)
Set the <code>ObjectName</code>-style name of the single MBean
that the encapsulated
NotificationFilter
will be registered with to listen for <code>Notifications</code>. |
void |
setMappedObjectNames(java.lang.Object[] mappedObjectNames)
Set an array of <code>ObjectName</code>-style names of the MBeans
that the encapsulated
NotificationFilter
will be registered with to listen for <code>Notifications</code>. |
void |
setNotificationFilter(javax.management.NotificationFilter notificationFilter)
Set the <code>NotificationFilter</code> associated
with the encapsulated
NotificationFilter . |
void |
setNotificationListener(javax.management.NotificationListener notificationListener)
Set the <code>NotificationListener</code>.
|
private javax.management.NotificationListener notificationListener
private javax.management.NotificationFilter notificationFilter
private java.lang.Object handback
protected java.util.Set<java.lang.Object> mappedObjectNames
public void setNotificationListener(javax.management.NotificationListener notificationListener)
public javax.management.NotificationListener getNotificationListener()
public void setNotificationFilter(javax.management.NotificationFilter notificationFilter)
NotificationFilter
.
May be null
.
public javax.management.NotificationFilter getNotificationFilter()
NotificationFilter
.
May be null
.
public void setHandback(java.lang.Object handback)
handback
- the handback object (can be null
)NotificationListener.handleNotification(javax.management.Notification, Object)
public java.lang.Object getHandback()
null
)NotificationListener.handleNotification(javax.management.Notification, Object)
public void setMappedObjectName(java.lang.Object mappedObjectName)
NotificationFilter
will be registered with to listen for <code>Notifications</code>.
Can be specified as ObjectName
instance or as String
.setMappedObjectNames(java.lang.Object[])
public void setMappedObjectNames(java.lang.Object[] mappedObjectNames)
NotificationFilter
will be registered with to listen for <code>Notifications</code>.
Can be specified as ObjectName
instances or as String
s.setMappedObjectName(java.lang.Object)
public javax.management.ObjectName[] getResolvedObjectNames() throws javax.management.MalformedObjectNameException
NotificationFilter
will
be registered as a listener for <code>Notifications</code>.javax.management.MalformedObjectNameException
- if an ObjectName
is malformedpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object