Comment #2 on issue 387 by sberlin: Binding Listeners Patch http://code.google.com/p/google-guice/issues/detail?id=387
This patch also fixes issue 386, which isn't strictly related to user-supplied singletons. In general, the patch solves all issues with late-found JIT singletons not being eager (including the Injector.getProvider(MySingletonObject.class) not eagerly creating MySingletonObject issue). issue 386 is a particular problem for us, as I'd like to create a child injector (the UI injector, based off the core injector), but right now it's essentially impossible to use a child injector and have eager singletons created. Explicitly declaring all bindings in the child injector isn't an option -- it's a PITA to have to bind all (even linked!) child bindings. (FWIW, I would *love* to have a 'strict' mode where JIT bindings, except linked bindings, are flatly disallowed. This would open the door a bit more to allowing child injectors [and private modules] behave as expected.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice-dev" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
