|
||||||||||
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 | |
---|---|
protected Set |
mappedObjectNames
|
Constructor Summary | |
---|---|
NotificationListenerHolder()
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
Object |
getHandback()
Return the (arbitrary) object that will be 'handed back' as-is by an NotificationBroadcaster when notifying
any NotificationListener . |
NotificationFilter |
getNotificationFilter()
Return the NotificationFilter associated
with the encapsulated NotificationFilter . |
NotificationListener |
getNotificationListener()
Get the NotificationListener . |
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(Object handback)
Set the (arbitrary) object that will be 'handed back' as-is by an NotificationBroadcaster when notifying
any NotificationListener . |
void |
setMappedObjectName(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(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(NotificationFilter notificationFilter)
Set the NotificationFilter associated
with the encapsulated NotificationFilter . |
void |
setNotificationListener(NotificationListener notificationListener)
Set the NotificationListener . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Set mappedObjectNames
Constructor Detail |
---|
public NotificationListenerHolder()
Method Detail |
---|
public void setNotificationListener(NotificationListener notificationListener)
NotificationListener
.
public NotificationListener getNotificationListener()
NotificationListener
.
public void setNotificationFilter(NotificationFilter notificationFilter)
NotificationFilter
associated
with the encapsulated NotificationFilter
.
May be null
.
public NotificationFilter getNotificationFilter()
NotificationFilter
associated
with the encapsulated NotificationFilter
.
May be null
.
public void setHandback(Object handback)
NotificationBroadcaster
when notifying
any NotificationListener
.
handback
- the handback object (can be null
)NotificationListener.handleNotification(javax.management.Notification, Object)
public Object getHandback()
NotificationBroadcaster
when notifying
any NotificationListener
.
null
)NotificationListener.handleNotification(javax.management.Notification, Object)
public void setMappedObjectName(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(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 ObjectName[] getResolvedObjectNames() throws MalformedObjectNameException
ObjectName
String representations for
which the encapsulated NotificationFilter
will
be registered as a listener for Notifications
.
MalformedObjectNameException
- if an ObjectName
is malformedpublic boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |