Thanks for your inputs. Basically, One injector for the all application is 
not always possible.

On Thursday, August 21, 2014 8:43:18 AM UTC+2, Jochen Wiedmann wrote:
>
> I'm not sure, whether I get you right. But to me this sounds like a 
> situation where I would create child injectors and somehow make sure that 
> they are accessible. For example, in a web application, I might create a 
> parent injector for the whole web application. And, for any HTTP Request, I 
> might create a child injector with request specific data (a database 
> transaction comes to mind) and store that in a ThreadLocal.
>
> OTOH, my example might interfere a lot with scopes. But, to be honest: I 
> never really understood what scopes are good for.
>
> Jochen
>
>

-- 
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/1fbcdd1d-5d83-4f85-88fd-b3e035b86a56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to