xiaodududu / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

GuiceFilter multithreaded support #637

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Guice 3.0

As a follow-up to issue 636 I wanted to outline some of the problems I've run 
into trying to run unit tests in parallel using GuiceFilter.

The documentation needs to discuss how to properly use multiple Injectors with 
GuiceFilter and MultipleServletInjectorsTest I can see that 
GuiceFilter.injectedPipeline needs to be set to a non-null value for this to 
work. What I can't figure out is who is supposed to set that value. Currently 
GuiceFilter is being initialized by the web server. I provide it with a class 
name of the filter and it initializes it using Reflection. Another difference I 
noticed is that the ServletContext being used is constructed without Guice. Is 
this a problem?

Please explain what I need to do to get Guice to inject a value into 
GuiceFilter.injectedPipeline.

Original issue reported on code.google.com by cow...@bbs.darktech.org on 18 Jun 2011 at 6:38

GoogleCodeExporter commented 9 years ago
Please close this issue as a duplicate of issue 635.

Original comment by cow...@bbs.darktech.org on 19 Jun 2011 at 3:19

GoogleCodeExporter commented 9 years ago

Original comment by mccu...@gmail.com on 20 Jun 2011 at 11:23