public interface NotificationListenerRegistry
NotificationListeners for Notifications fired by the Mule container, extensions
and applications.| Modifier and Type | Field and Description |
|---|---|
static String |
REGISTRY_KEY |
| Modifier and Type | Method and Description |
|---|---|
<N extends Notification> |
registerListener(NotificationListener<N> listener)
Registers a
NotificationListener. |
<N extends Notification> |
registerListener(NotificationListener<N> listener,
Predicate<N> selector)
Registers a
NotificationListener. |
<N extends Notification> |
unregisterListener(NotificationListener<N> listener)
Unregisters a previously registered
NotificationListener. |
static final String REGISTRY_KEY
<N extends Notification> void registerListener(NotificationListener<N> listener)
NotificationListener. The listener will be notified when a particular event happens within the server.
Typically this is not an event in the same sense as a Mule Event (although there is nothing stopping the implementation of
this class triggering listeners when a Mule Event is received).N - the concrete type of the notification to be handled by the listenerlistener - the listener to register<N extends Notification> void registerListener(NotificationListener<N> listener, Predicate<N> selector)
NotificationListener. The listener will be notified when a particular event happens within the server.
Typically this is not an event in the same sense as a Mule Event (although there is nothing stopping the implementation of
this class triggering listeners when a Mule Event is received).N - the concrete type of the notification to be handled by the listenerlistener - the listener to registerselector - a filter to apply on a fired Notification before calling the listener with it. Non-null.<N extends Notification> void unregisterListener(NotificationListener<N> listener)
NotificationListener. If the listener has not already been registered, this
method should return without exceptionN - the concrete type of the notification handled by the listenerlistener - the listener to unregisterCopyright © 2021 MuleSoft, Inc.. All rights reserved.