Hi Guys,
Why does GIN not allow you to re-bind something?
Here is a use case that I've had in the past.
I created a library with lots of MVP components in it. I provided Modules for those components and allowed the user of the library to create
their own Ginjector and use my modules from my library. What I wanted was for them to be able to extend or change the components in my library by
extending my modules and rebinding certain parts. I still need to provide the default bindings since some users of the library may not want to change things.
This could be done at one level by @ImplementedBy because it allows you to rebind 1 time in your module. This also does not work with bindings in factories though.
I can see how giving the warning in bind for rebinding makes sense, since someone may accidently do it., but what if there was a rebind method on the binder?
I guess this would break Guice compatability...
Any ideas? thoughts?