On Thursday, August 21, 2014 11:22:58 AM UTC+2, Maatary Okouya wrote:
>
> Thanks for your inputs. Basically, One injector for the all application is 
> not always possible.
>

I believe it generally is; you'd then use scopes to group things together.
 

>
> 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/ad2f2efe-ddeb-42a5-ae27-f026967aa5e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to