Directory

← Back

Guice-Vaadin EventBus-Addon

EventBus addon for GuiceVaadin

Author

Rating

Popularity

<100

#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());
   }
}

Compatibility

1.0.01.1.02.0.12.0.1-vaadin102.0.FINAL2.0.alpha12.0.beta12.1.0-vaadin102.1.1-vaadin10
(24.4)
(24.3)
(24.2)
(24.1)
10-24Y
8.0-8.21YYY
7.6-7.7YYYYY
(7.5)
(7.4)
(7.3)
(7.2)
(7.1)
(7.0)
(6.8)
(6.7)
(6.6)
(6.5)
(6.4)
(6.3)
(6.2)
(6.1)
(6.0)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2018-04-12
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.6+
Vaadin 10+ in 2.0.1-vaadin10
Vaadin 8.0+ in 2.0.beta1
Browser
N/A

Guice-Vaadin EventBus-Addon - Vaadin Add-on Directory

EventBus addon for GuiceVaadin Guice-Vaadin EventBus-Addon - Vaadin Add-on Directory
#Eventbus addon for Guice-Vaadin this addon provides integration of the [Guava EventBus](https://github.com/google/guava/wiki/EventBusExplained) into Guice-Vaadin. SessionEventBus and UIEventBus can be used as-is, these are Guava implementations that are scoped with @VaadinSessionScope and @UIScope respectively. ```java class MyButton extends Button { @Inject UIEventBus uiEventBus; Button(){ addClickHandler(e -> uiEventBus.post(new MyButtonWasClickedEvent()); } } ```
Online