I see. I guess the documentation saying that it's not recommended for users 
to write their own scopes made me thing the built in scopes were more 
general than they actually are.

On Sunday, June 7, 2015 at 5:32:36 PM UTC-4, Jens wrote:
>
> The session scope stores data in the HTTP session and the request scope 
> stores data as attribute on the HTTP servlet request. See: 
> https://github.com/google/guice/blob/master/extensions/servlet/src/com/google/inject/servlet/ServletScopes.java
>
> So if you don't have a HttpSession and HttpServletRequest in your 
> application then you can not use these scopes.
>
> -- J.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/cc886af6-c30c-482f-a39f-95abc976778f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to