|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jmx.support.NotificationListenerHolder
public class 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
.
NotificationListenerBean
,
NotificationListenerRegistrar
Field Summary | |
---|---|
private java.lang.Object |
handback
|
protected java.util.Set<java.lang.Object> |
mappedObjectNames
|
private javax.management.NotificationFilter |
notificationFilter
|
private javax.management.NotificationListener |
notificationListener
|
Constructor Summary | |
---|---|
NotificationListenerHolder()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.Object |
getHandback()
Return the (arbitrary) object that will be 'handed back' as-is by an NotificationBroadcaster when notifying
any NotificationListener . |
javax.management.NotificationFilter |
getNotificationFilter()
Return the NotificationFilter associated
with the encapsulated NotificationFilter . |
javax.management.NotificationListener |
getNotificationListener()
Get the NotificationListener . |
javax.management.ObjectName[] |
getResolvedObjectNames()
Return the list of ObjectName String representations for
which the encapsulated NotificationFilter will
be registered as a listener for Notifications . |
int |
hashCode()
|
void |
setHandback(java.lang.Object handback)
Set the (arbitrary) object that will be 'handed back' as-is by an NotificationBroadcaster when notifying
any NotificationListener . |
void |
setMappedObjectName(java.lang.Object mappedObjectName)
Set the ObjectName -style name of the single MBean
that the encapsulated NotificationFilter
will be registered with to listen for Notifications . |
void |
setMappedObjectNames(java.lang.Object[] mappedObjectNames)
Set an array of ObjectName -style names of the MBeans
that the encapsulated NotificationFilter
will be registered with to listen for Notifications . |
void |
setNotificationFilter(javax.management.NotificationFilter notificationFilter)
Set the NotificationFilter associated
with the encapsulated NotificationFilter . |
void |
setNotificationListener(javax.management.NotificationListener notificationListener)
Set the NotificationListener . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.management.NotificationListener notificationListener
private javax.management.NotificationFilter notificationFilter
private java.lang.Object handback
protected java.util.Set<java.lang.Object> mappedObjectNames
Constructor Detail |
---|
public NotificationListenerHolder()
Method Detail |
---|
public void setNotificationListener(javax.management.NotificationListener notificationListener)
NotificationListener
.
public javax.management.NotificationListener getNotificationListener()
NotificationListener
.
public void setNotificationFilter(javax.management.NotificationFilter notificationFilter)
NotificationFilter
associated
with the encapsulated NotificationFilter
.
May be null
.
public javax.management.NotificationFilter getNotificationFilter()
NotificationFilter
associated
with the encapsulated NotificationFilter
.
May be null
.
public void setHandback(java.lang.Object handback)
NotificationBroadcaster
when notifying
any NotificationListener
.
handback
- the handback object (can be null
)NotificationListener.handleNotification(javax.management.Notification, Object)
public java.lang.Object getHandback()
NotificationBroadcaster
when notifying
any NotificationListener
.
null
)NotificationListener.handleNotification(javax.management.Notification, Object)
public void setMappedObjectName(java.lang.Object mappedObjectName)
ObjectName
-style name of the single MBean
that the encapsulated NotificationFilter
will be registered with to listen for Notifications
.
Can be specified as ObjectName
instance or as String
.
setMappedObjectNames(java.lang.Object[])
public void setMappedObjectNames(java.lang.Object[] mappedObjectNames)
ObjectName
-style names of the MBeans
that the encapsulated NotificationFilter
will be registered with to listen for Notifications
.
Can be specified as ObjectName
instances or as String
s.
setMappedObjectName(java.lang.Object)
public javax.management.ObjectName[] getResolvedObjectNames() throws javax.management.MalformedObjectNameException
ObjectName
String representations for
which the encapsulated NotificationFilter
will
be registered as a listener for Notifications
.
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |