Package org.jboss.as.controller.registry
Interface NotificationHandlerRegistration
-
- All Superinterfaces:
NotificationHandlerRegistry
public interface NotificationHandlerRegistration extends NotificationHandlerRegistry
The NotificationHandlerRegistration is used to register and unregister notification handlers. Notification handlers are registered againstPathAddress
. The source PathAddress can be a pattern if at least one of its element value is a wildcard (PathElement.getValue()
is*
). For example:/subsystem=messaging/hornetq-server=default/jms-queue=*
is an address pattern./subsystem=messaging/hornetq-server=*/jms-queue=*
is an address pattern./subsystem=messaging/hornetq-server=default/jms-queue=myQueue
is not an address pattern.
- Author:
- Jeff Mesnil (c) 2014 Red Hat inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NotificationHandlerRegistration.Factory
Factory to create a newNotificationHandlerRegistration
-
Field Summary
-
Fields inherited from interface org.jboss.as.controller.notification.NotificationHandlerRegistry
ANY_ADDRESS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<NotificationHandler>
findMatchingNotificationHandlers(Notification notification)
Return all theNotificationHandler
that where registered to listen to the notification's source address (either directly or though pattern addresses) after filtering them out using theNotificationFilter
given at registration time.-
Methods inherited from interface org.jboss.as.controller.notification.NotificationHandlerRegistry
registerNotificationHandler, unregisterNotificationHandler
-
-
-
-
Method Detail
-
findMatchingNotificationHandlers
Collection<NotificationHandler> findMatchingNotificationHandlers(Notification notification)
Return all theNotificationHandler
that where registered to listen to the notification's source address (either directly or though pattern addresses) after filtering them out using theNotificationFilter
given at registration time.- Parameters:
notification
- the source address of the notification must be a concrete address correspdonding to a resource (and not a wildcard address)- Returns:
- all the filtered
NotificationHandler
that registered against the notification source.
-
-