This content has been marked as final.
Show 2 replies
-
1. Re: Guice with own modules?
mark.engel Nov 19, 2010 11:11 AM (in response to mark.engel)I know that its possible to add bindings through config.addBinding in an ExtensionComponent, but this syntax is way more redundant than modules in guice (https://gist.github.com/f4ceddaa69b31da5f722)
-
2. Re: Guice with own modules?
mark.engel Dec 15, 2010 8:29 AM (in response to mark.engel)I created a class to make this binding easier.
Feel free to use it.
https://gist.github.com/552efc20093d270e3c31
Usage in AppConfigurater is the following:
new Binder<ClasstoBind>(erraiConfig, instanceToBind, ClasstoBind.class).bind();
Hope this helps anyone.
Anyway I would prefer a way to use the regular guice modules with erraibus.
Does anybody know how?