|
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()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
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 ObjectName 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-style name of the single MBean
that the encapsulated NotificationFilter
will be registered with to listen for
Notifications. |
void |
setMappedObjectNames(String[] 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, 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.
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(String mappedObjectName)
ObjectName-style name of the single MBean
that the encapsulated NotificationFilter
will be registered with to listen for
Notifications.
public void setMappedObjectNames(String[] mappedObjectNames)
ObjectName-style names of the MBeans
that the encapsulated NotificationFilter
will be registered with to listen for
Notifications.
public String[] getMappedObjectNames()
ObjectName String representations for
which the encapsulated NotificationFilter will
be registered as a listener for Notifications.
public void afterPropertiesSet()
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface InitializingBean
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||