@ Override public void handleNotification ( Notification notification , Object handback ) { if ( notification instanceof MBeanServerNotification ) { MBeanServerNotification mbeanNotification = ( MBeanServerNotification ) notification ; if ( mbeanNotification . getType ( ) . equals ( "JMX.mbean.registered" ) ) { jmxTree = null ; registerAsNotificationListener ( mbeanNotification . getMBeanName ( ) ) ; } else if ( mbeanNotification . getType ( ) . equals ( "JMX.mbean.unregistered" ) ) { jmxTree = null ; } } for ( NotificationListener listener : listeners ) { listener . handleNotification ( notification , handback ) ; } }
Handles JMX Notifications and relays notifications to the notification listers registered with this service .