Following a hunch, I did solve this - but I have no idea if the solution works by accident or if I should expect it to work in future versions of Guice.
What I did was simply: Add a TypeListener which stores the TypeLiteral it is passed in a ThreadLocal; read the ThreadLocal in Provider.get() and use getRawType to find the class and package to look for annotations on. While less horrible than some things I imagined doing, it's less clear to me if it's actually correct or sane. Would love it if someone could chime in with a few thoughts. Thanks, Tim -- 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/-/zzwwtFTcxQAJ. 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.
