Comment #7 on issue 445 by [email protected]: Assisted-injection does not validate that factory methods will work in TOOL stage
http://code.google.com/p/google-guice/issues/detail?id=445

In tool stage the only user-code Guice runs is Module.configure(). It doesn't call
constructors, build singletons, or perform any member injections.

My preferred fix is to find a way for certain injections to mark themselves as tool- friendly. I like Sam's idea of just using @Toolable on a regular @Inject method. I also like a naming convention because it doesn't pollute the public API with an annotation that almost zero people should ever use. Especially since if they do use it, they can
break tool stage.

Whomever wants to do the fix: take your pick (annotation vs. naming convention), add isToolable() to InjectionPoint, and wire in tool stage to perform those injections.

--
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.

Reply via email to