vaadin / quarkus

An extension to Quarkus to support Vaadin Flow
Apache License 2.0
28 stars 3 forks source link

Session init/destroy, UI init events should be fired via BeanManager so that they can be observed via @Obvserves parameter #21

Closed denis-anisimov closed 2 years ago

denis-anisimov commented 2 years ago

See https://github.com/vaadin/cdi/blob/master/vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/service/EventObserver.java This functionality should be available for Quarkus. It should be possible just have a method with a @Observes parameters and receive events SessionInitEvent, SessionDestroyEvent, UIInitEvent.

VaadinServiceDestroyEvent is already implemented as a part of VaadinServiceScope.