You can bind the object in request scope.


On 05/19/2015 12:43 PM, klc wrote:
Hi all I have a servlet app that read a configuration file on settings of different services (>1000), like auto commit. And when a request come in, it use this configuration to create a per request context object for services to use.

Now for the context object i can use assisted inject to create them by factory. but how do I re-inject them in services, instead of passing them explicitly?
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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/c39f19b4-8830-4c3b-89ad-e3e0e4680c06%40googlegroups.com <https://groups.google.com/d/msgid/google-guice/c39f19b4-8830-4c3b-89ad-e3e0e4680c06%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/555B1868.7050001%40gmx.ch.
For more options, visit https://groups.google.com/d/optout.

Reply via email to