Package org.springframework.jmx.export
Class NotificationListenerBean
java.lang.Object
org.springframework.jmx.support.NotificationListenerHolder
org.springframework.jmx.export.NotificationListenerBean
- All Implemented Interfaces:
InitializingBean
public class NotificationListenerBean
extends NotificationListenerHolder
implements InitializingBean
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.
Note: This class supports Spring bean names as
"mappedObjectNames" as well, as alternative
to specifying JMX object names. Note that only beans exported by the
same MBeanExporter are supported for such bean names.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from class org.springframework.jmx.support.NotificationListenerHolder
mappedObjectNames -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of theNotificationListenerBeanclass.NotificationListenerBean(NotificationListener notificationListener) Create a new instance of theNotificationListenerBeanclass. -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.Methods inherited from class org.springframework.jmx.support.NotificationListenerHolder
equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener
-
Constructor Details
-
NotificationListenerBean
public NotificationListenerBean()Create a new instance of theNotificationListenerBeanclass. -
NotificationListenerBean
Create a new instance of theNotificationListenerBeanclass.- Parameters:
notificationListener- the encapsulated listener
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()Description copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- Specified by:
afterPropertiesSetin interfaceInitializingBean
-