|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jmx.export.NotificationListenerBean
public class NotificationListenerBean
Helper class that aggregates a NotificationListener,
a NotificationFilter, and an arbitrary handback
object.
Also provides support for associating the encapsulated
NotificationListener with any number of
MBeans from which it wishes to receive
Notifications via the
mappedObjectNames property.
| Constructor Summary | |
|---|---|
NotificationListenerBean()
Create a new instance of the NotificationListenerBean class. |
|
NotificationListenerBean(NotificationListener notificationListener)
Create a new instance of the NotificationListenerBean class. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Check that this NotificationListenerBean has been
correctly configured. |
Object |
getHandback()
Return the (arbitrary) object that will be 'handed back' as-is by an NotificationBroadcaster when notifying
any NotificationListener. |
String[] |
getMappedObjectNames()
Return the list of ObjectNames String
representations for which the encapsulated
NotificationFilter will
be registered as a listener for Notifications. |
NotificationFilter |
getNotificationFilter()
Return the NotificationFilter associated
with the encapsulated NotificationFilter. |
NotificationListener |
getNotificationListener()
Get the NotificationListener. |
void |
setHandback(Object handback)
Set the (arbitrary) object that will be 'handed back' as-is by an NotificationBroadcaster when notifying
any NotificationListener. |
void |
setMappedObjectName(String mappedObjectName)
Set the ObjectName of the single MBean
that the encapsulated NotificationFilter
will be registered with to listen for
Notifications. |
void |
setMappedObjectNames(String[] mappedObjectNames)
Set the array of ObjectNames 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationListenerBean()
NotificationListenerBean class.
public NotificationListenerBean(NotificationListener notificationListener)
NotificationListenerBean class.
notificationListener - the encapsulated listener| Method Detail |
|---|
public void setNotificationListener(NotificationListener notificationListener)
NotificationListener.
notificationListener - said NotificationListenerpublic NotificationListener getNotificationListener()
NotificationListener.
NotificationListenerpublic void setNotificationFilter(NotificationFilter notificationFilter)
NotificationFilter associated
with the encapsulated NotificationFilter.
May be null.
notificationFilter - said NotificationFilterpublic NotificationFilter getNotificationFilter()
NotificationFilter associated
with the encapsulated NotificationFilter.
May be null.
NotificationFilterpublic void setHandback(Object handback)
NotificationBroadcaster when notifying
any NotificationListener.
May be null.
handback - the handback object.NotificationListener.handleNotification(javax.management.Notification, Object)public Object getHandback()
NotificationBroadcaster when notifying
any NotificationListener.
NotificationListener.handleNotification(javax.management.Notification, Object)public void setMappedObjectName(String mappedObjectName)
ObjectName of the single MBean
that the encapsulated NotificationFilter
will be registered with to listen for
Notifications.
mappedObjectName - the ObjectName identifying the
target MBean that the encapsulated NotificationFilter
is to be registered withpublic void setMappedObjectNames(String[] mappedObjectNames)
ObjectNames of the MBeans
that the encapsulated NotificationFilter
will be registered with to listen for
Notifications.
mappedObjectNames - the array of ObjectName
String representations, identifying the target MBeans that the encapsulated
NotificationFilter is to be registered withpublic String[] getMappedObjectNames()
ObjectNames String
representations for which the encapsulated
NotificationFilter will
be registered as a listener for Notifications.
public void afterPropertiesSet()
NotificationListenerBean has been
correctly configured.
afterPropertiesSet in interface InitializingBean
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||