Class AttachmentListenerNotifier
- java.lang.Object
-
- de.bmiag.tapir.execution.attachment.AttachmentListenerNotifier
-
@Component("tapirAttachmentListenerNotifier") public class AttachmentListenerNotifier extends java.lang.Object
TheAttachmentListenerNotifier
publishes attachments to the registeredAttachmentListeners
. Each bean in the Spring context which implementsAttachmentListener
is notified.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
AttachmentListener
-
-
Constructor Summary
Constructors Constructor Description AttachmentListenerNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyListeners(java.util.function.Consumer<AttachmentListener> consumer)
Notifies each registeredAttachmentListener
of the given event.
The implementation is aware of exceptions thrown by the listeners and continues notification.
-
-
-
Method Detail
-
notifyListeners
public void notifyListeners(java.util.function.Consumer<AttachmentListener> consumer)
Notifies each registeredAttachmentListener
of the given event.
The implementation is aware of exceptions thrown by the listeners and continues notification.- Parameters:
consumer
- The code which should be executed on notification- Since:
- 2.0.0
-
-