Is there a way to bind HttpServletRequest to a fake instance outside of RequestScope?
I've got some static initialization I'd like to run inside of @Singleton. In this use case all objects to initialize require HttpServletRequest normally. But in the initialization flow, the request may be null or have fake values. The most convenient thing would be to define a provider in Singleton scope for HttpServletRequest that is subordinate to the normal @RequestScope provider. But any way I try to define it I get a: A binding to javax.servlet.http.HttpServletRequest was already configured at com.google.inject.servlet.InternalServletModule.provideHttpServletRequest() Ideas? -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out.
