Status: New
Owner: ----

New issue 348 by mathias.bogaert: ServletContext is null
http://code.google.com/p/google-guice/issues/detail?id=348

When using the @Provides annotation on a method in my module extending
ServletModule and adding the servletContext as method parameter (JIT
binding), I'm getting a null for the ServletContext.

@Provides @Singleton
     protected Configuration buildFreemarkerConfig(ServletContext
servletContext, Text2HtmlMethod text2HtmlMethod, ...)

Could this be due to ServletContext being bound to a WeakReference and the
GC collecting it before the JIT binding is evaluated?

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