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=myQueueis not an address pattern.
- Author:
- Jeff Mesnil (c) 2014 Red Hat inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNotificationHandlerRegistration.FactoryFactory 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 theNotificationHandlerthat where registered to listen to the notification's source address (either directly or though pattern addresses) after filtering them out using theNotificationFiltergiven 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 theNotificationHandlerthat where registered to listen to the notification's source address (either directly or though pattern addresses) after filtering them out using theNotificationFiltergiven 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
NotificationHandlerthat registered against the notification source.
-
-