On Feb 28, 8:28 am, Alen Vrecko <[email protected]> wrote: > now notice in the second case that String has been exposed meaning > once a binding is created it is immutable and global for all i.e. > nobody is allowed to redefine it. This property of bindings makes it > possible for the module order to be in any way. If bindings could > overwrite each other then the order of modules would matter and that > is not very good idea. > > LocalModule addes String to "global" bindings > ModuleOne addes String to "private" bindings but it CANNOT work > because it would redefine the "global" binding. > > If you don't expose String in LocalModule it would work fine.
Thanks Alen. I like your explanation better than mine! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
