Package groovy.jmx.builder
Class JmxEventListener
- java.lang.Object
- 
- groovy.jmx.builder.JmxEventListener
 
- 
- All Implemented Interfaces:
- java.util.EventListener,- javax.management.NotificationListener
 
 public class JmxEventListener extends java.lang.Object implements javax.management.NotificationListenerThe JmxEventListener class is used by the builder to listen to events on the event bus. It is used internally by JmxBuilder to handle attribute-change and operation-invoke events on the bean() node.- See Also:
- JmxBeanFactory
 
- 
- 
Constructor SummaryConstructors Constructor Description JmxEventListener()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JmxEventListenergetListener()Factory method that returns an instance of the listener.voidhandleNotification(javax.management.Notification notification, java.lang.Object handback)This is the implemented method for NotificationListener.
 
- 
- 
- 
Method Detail- 
getListenerpublic static JmxEventListener getListener() Factory method that returns an instance of the listener.- Returns:
- - JmxEventListener instance.
 
 - 
handleNotificationpublic void handleNotification(javax.management.Notification notification, java.lang.Object handback)This is the implemented method for NotificationListener. It is called by an event emitter to dispatch JMX events to listeners. Here it handles internal JmxBuilder events.- Specified by:
- handleNotificationin interface- javax.management.NotificationListener
- Parameters:
- notification- the notification object passed to closure used to handle JmxBuilder events.
- handback- - In this case, the handback is the closure to execute when the event is handled.
 
 
- 
 
-