Pardon me if I've simply failed to do my homework or haven't found the right combination of search terms, but I'm really wanting to get Guice integrated into our apps, and I'm at somewhat of an impasse. You see, we're stuck with an ancient web framework (Struts 1.2) for now that is currently not supported by Guice. I'd really like to start incrementally adding in Guice, but I can't seem to find a way to do it without either some really ugly hacks or essentially rewriting the code Struts servlet. Perhaps I'm just missing something obvious, but it's also worth noting that we have some other legacy servlets provided by third parties that would be hard to retrofit, as well.
So, given that, what's the best way to initialize the Injector in an environment like this (a servlet filter, I would assume) and then still be sure I can get access to it down the stack in our codebase? Is sticking the the Injector in a ThreadLocal really such a bad idea I should not even consider it? -- 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.
