Created
May 28, 2013 15:41
-
-
Save mathieuancelin/5663702 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import static reactor.Fn.$; | |
| @Inject | |
| Service service; | |
| Reactor reactor = R.create(); | |
| reactor.on($("parse"), new Consumer<Event<String>>() { | |
| public void call(Event<String> ev) { | |
| service.handleEvent(ev); | |
| } | |
| }); | |
| reactor.notify("parse", Fn.event("Hello World!")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment