我经历的Spring
文档上JMX
和整个下段传来:
By configuring NotificationListeners in place, every time a JMX Notification is broadcast
from the target MBean (bean:name=testBean1),the ConsoleLoggingNotificationListener bean
that was registered as a listener via the notificationListenerMappings property will be
notified.
这是怎么ConsoleLoggingNotificationListener
实现:
public class ConsoleLoggingNotificationListener
implements NotificationListener, NotificationFilter {
public void handleNotification(Notification notification, Object handback) {
System.out.println(notification);
System.out.println(handback);
}
public boolean isNotificationEnabled(Notification notification) {
return AttributeChangeNotification.class.isAssignableFrom(notification.getClass());
}
}
但是,因为我是新手,我想知道的是,当一个JMX Notification
时间播出? 它是在一个JMX暴露属性的值被改变 ?
请帮我知道这一点。
谢谢!