@Component(value="tapirAttachmentListenerNotifier") public class AttachmentListenerNotifier extends Object
AttachmentListenerNotifier
publishes attachments to the registered AttachmentListeners
. Each bean in the Spring context which implements AttachmentListener
is notified.AttachmentListener
Constructor and Description |
---|
AttachmentListenerNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
notifyListeners(Consumer<AttachmentListener> consumer)
Notifies each registered
AttachmentListener of the given event.The implementation is aware of exceptions thrown by the listeners and continues notification. |
public void notifyListeners(Consumer<AttachmentListener> consumer)
AttachmentListener
of the given event.consumer
- The code which should be executed on notificationCopyright © 2018–2020 b+m Informatik AG. All rights reserved.