Class NotificationListenerBase

  • All Implemented Interfaces:
    EventListener, NotificationListener
    Direct Known Subclasses:
    MBeanRegistrationListener

    public abstract class NotificationListenerBase
    extends Object
    implements NotificationListener
    Convenience base class for listening for Notifications from one or more MBeans, which may be specified as a specific MBean ObjectName, or an ObjectName pattern. If the ObjectName is a pattern, the list of listenees is dynamically maintained.

    Caller should call cleanup() when done, because a listener is maintained on the MBeanServer delegate.