Package org.jboss.as.controller.registry
Interface NotificationHandlerRegistration
- All Superinterfaces:
NotificationHandlerRegistry
The NotificationHandlerRegistration is used to register and unregister notification handlers.
Notification handlers are registered against
PathAddress.
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 ClassesModifier and TypeInterfaceDescriptionstatic classFactory to create a newNotificationHandlerRegistration -
Field Summary
Fields inherited from interface org.jboss.as.controller.notification.NotificationHandlerRegistry
ANY_ADDRESS, SERVICE_DESCRIPTOR -
Method Summary
Modifier and TypeMethodDescriptionfindMatchingNotificationHandlers(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 Details
-
findMatchingNotificationHandlers
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.
-