Wednesday, October 26, 2016

Re: How to bind essential singletons in multi-module GIN app and avoid duplicate binding

I don't know if it's supported by GIN but Guice has a requireBinding to prevent the second case. And if the user of your lib has to use GIN it's not abnormal to ask them to bind a few things. You can provide GinModules that bind them if you like so they only have to compose them in their Ginjector without the need to write the bindings themselves.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment