Guice-Vaadin EventBus-Addon: #Eventbus addon for Guice-Vaadin
this addon provides integration of the Guava EventBus into
Guice-Vaadin. SessionEventBus and UIEventBus can be used as-is, these are Guava implementations that are scoped
with @VaadinSessionScope and @UIScope respectively.
class MyButton extends Button {
@Inject
UIEventBus uiEventBus;
Button(){
addClickHandler(e -> uiEventBus.post(new MyButtonWasClickedEvent());
}
}