类 NotificationListenerBean
- java.lang.Object
- org.springframework.jmx.support.NotificationListenerHolder
- org.springframework.jmx.export.NotificationListenerBean
- 所有已实现的接口:
InitializingBean
public class NotificationListenerBean extends NotificationListenerHolder implements InitializingBean
Helper class that aggregates aNotificationListener
, aNotificationFilter
, and an arbitrary handback object.Also provides support for associating the encapsulated
NotificationListener
with any number of MBeans from which it wishes to receiveNotifications
via themappedObjectNames
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 sameMBeanExporter
are supported for such bean names.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
MBeanExporter.setNotificationListeners(org.springframework.jmx.export.NotificationListenerBean...)
字段概要
从类继承的字段 org.springframework.jmx.support.NotificationListenerHolder
mappedObjectNames
构造器概要
构造器 构造器 说明 NotificationListenerBean()
Create a new instance of theNotificationListenerBean
class.NotificationListenerBean(NotificationListener notificationListener)
Create a new instance of theNotificationListenerBean
class.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.从类继承的方法 org.springframework.jmx.support.NotificationListenerHolder
equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener
构造器详细资料
NotificationListenerBean
public NotificationListenerBean()
Create a new instance of theNotificationListenerBean
class.
NotificationListenerBean
public NotificationListenerBean(NotificationListener notificationListener)
Create a new instance of theNotificationListenerBean
class.- 参数:
notificationListener
- the encapsulated listener
方法详细资料
afterPropertiesSet
public void afterPropertiesSet()
从接口复制的说明:InitializingBean
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- 指定者:
afterPropertiesSet
在接口中InitializingBean