On Feb 28, 5:26 am, bank kus <[email protected]> wrote:
> Using snapshot20090205 this code doesnt work. If I removed the
> LocalModule from the injector's constructor it works fine. Is this
> expected? Whats the right way to do this.
You can't bind anything that's already bound in your parent. Otherwise
there's a conflict, since you naturally inherit bindings from your
parent.
When you expose(), that's moves the binding to your parent. So in this
case, String is bound in the top-level Injector, which prevents
ModuleOne from binding that type.
The docs might not be clear enough, and I'll try to go over them to
make this more explicit.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---