The Spring event mechanism supports publishing application events and listening to these events within Spring components via the @EventListener
annotation. However, I cannot find anything about sending events within a specific scope in the documentation. My specific need for Vaadin is:
- in context of a user interaction, send an event (e.g. logged-in event)
- this event should only be consumed by beans in same
@UIScope
, i.e. other user UIs shouldn't be effected
Is that possible? NOTE: This is not really specific to Vaadin. I could also ask how it would be done with Spring web mvc request scope.