Last time i asked (https://groups.google.com/d/topic/google-guice/yX6EygvpHVc/discussion), i was given an answer that Guice does not allow such kind of injection by design.
I ended with a custom annotation and a type listener that injects fields annotated with it with context-dependent values, with all the pleasures of such approach such as not able to declare that field as final and not able to use it in the constructor. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/ZEAImzi8j9oJ. 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.
