Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-13 Thread Leigh Klotz
Tim and Dhanji are both right, unsurprisingly. 1. My trouble came from my own three-way integration of Guice, Restlet, and Servlet, not from Tim's Guice-Restlet example at http://tembrel.blogspot.com/2008/07/resource-dependency-injection-in.html 2. Tim's Restlet FinderFactoryModule obtains the In

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-09 Thread Tim Peierls
The Restlet-Guice integration doesn't have anything to do with servlets -- that's one of the joys of Restlet!. ;-) But Leigh Klotz might be working in a hybrid Restlet/Servlet environment. Perhaps Leigh can say why the proposed deprecation would inhibit use of FinderFactoryModule in that setting

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-08 Thread Dhanji R. Prasanna
On Sun, Mar 8, 2009 at 6:50 AM, Tim Peierls wrote: > > On Mar 5, 8:14 pm, "Dhanji R. Prasanna" wrote: > > > - It makes it difficult for me to get the Injector for use by Tim > Peierls' Restlet integration > > > > Hmm, I'll ask Tim if I can update his restlet thing for GS2. He will be > > loads h

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-07 Thread Tim Peierls
On Mar 5, 8:14 pm, "Dhanji R. Prasanna" wrote: > > - It makes it difficult for me to get the Injector for use by Tim Peierls' > > Restlet integration > > Hmm, I'll ask Tim if I can update his restlet thing for GS2. He will be > loads happier to use ctor injection I am sure! > > (Tim are you stil

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-05 Thread Leigh Klotz
I'd like to say at the outset that I'm whole at the moment with the evil InjectedHTTPServlet and can move forward correcting the other pre-2.0 changes (removing dependence on multiple @AssistedInject, etc.) so this is not an urgent issue for me, and I know you're all busy. Tim would no doubt be m

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-05 Thread Dhanji R. Prasanna
On Fri, Mar 6, 2009 at 10:40 AM, Leigh Klotz wrote: > > I've gone back to using a copy of InjectedHttpServlet from the > previous snapshot, and am whole again with onyl a small amount of > code. > > I think the new servlet stuff is cool for people who are using > servlets as a programming methodo

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-05 Thread Dhanji R. Prasanna
On Fri, Mar 6, 2009 at 5:39 AM, Leigh Klotz wrote: > > OK, maybe I'm being dense and it will all flash for me in a minute, > but it seems like this new feature, while better for an all-Guice, all- > servlet system does not satisfy the same use cases as before. It absolutely does--please explain

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-05 Thread Leigh Klotz
I've gone back to using a copy of InjectedHttpServlet from the previous snapshot, and am whole again with onyl a small amount of code. I think the new servlet stuff is cool for people who are using servlets as a programming methodology. However, for people like me who aren't writing new servlets

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-05 Thread Leigh Klotz
de snippet for GuiceFilter > (from the wiki tute you linked to). > > Dhanji. > > On Thu, Mar 5, 2009 at 9:41 AM, Leigh Klotz wrote: > > > I've been using an earlier snapshot and am upgrading to Guice 2 > > prerelease snapshot 20090205. > > > I've

Re: Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-04 Thread Dhanji R. Prasanna
d be empty except for the code snippet for GuiceFilter (from the wiki tute you linked to). Dhanji. On Thu, Mar 5, 2009 at 9:41 AM, Leigh Klotz wrote: > > I've been using an earlier snapshot and am upgrading to Guice 2 > prerelease snapshot 20090205. > > I've been relying on i

Re: Servlet injection during init() in Guice 2 prerelease snapshot 20090205

2009-03-04 Thread je...@swank.ca
With the new servlet API you can inject your servlets directly via their constructors (or methods or fields). Inject everything you need there, then use it as needed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "g

Servlet injection during init() in Guice 2 prerelease snapshot 20090205

2009-03-04 Thread Leigh Klotz
I've been using an earlier snapshot and am upgrading to Guice 2 prerelease snapshot 20090205. I've been relying on injection into servlets happening in the init (ServletConfig) method once super.init(servletConfig) has been called. I did not previously use the GuiceFilter in web.xml

Servlet injection before init() in Guice 2 prerelease snapshot 20090205

2009-03-04 Thread Leigh Klotz
I've been using an earlier snapshot and am upgrading to Guice 2 prerelease snapshot 20090205. I've been relying on injection into servlets happening in the init (ServletConfig) method once super.init(servletConfig) has been called. I did not previously use the GuiceFilter in web.xml

Re: Guice 2 prerelease snapshot 20090205

2009-02-09 Thread Johannes Schneider
I have downloaded the file. Thanks for your work. Just one question: What about an extra jar for the annotations? http://code.google.com/p/google-guice/issues/detail?id=106 Thanks, Johannes On Sun, 2009-02-08 at 12:37 -0800, je...@swank.ca wrote: > I've tagged a new snapshot and uploaded new

Re: Guice 2 prerelease snapshot 20090205

2009-02-09 Thread Dhanji R. Prasanna
Actually DocReader will probably be our preferred way going forward: http://code.google.com/docreader/#p=google-guice The information here is well structured and easy to browse compared with the user's guide. Dhanji. On Mon, Feb 9, 2009 at 9:40 PM, jordi wrote: > there's a lot more documentati

Re: Guice 2 prerelease snapshot 20090205

2009-02-09 Thread jordi
there's a lot more documentation on google code site: http://code.google.com/p/google-guice/wiki/Changes20 btw, thanks jesse and all of you bringing in all this new documentation! On Mon, Feb 9, 2009 at 11:32 AM, alexander.gruenew...@googlemail.com < alexander.gruenew...@googlemail.com> wrote:

Re: Guice 2 prerelease snapshot 20090205

2009-02-09 Thread Stuart McCulloch
2009/2/9 alexander.gruenew...@googlemail.com < alexander.gruenew...@googlemail.com> > > It's great to see progress. It would be also nice to see documentation > of the new features in Guice's user guide. Are there any plans for > this? FYI, there is a wiki entry that describes the new features:

Re: Guice 2 prerelease snapshot 20090205

2009-02-09 Thread alexander.gruenew...@googlemail.com
It's great to see progress. It would be also nice to see documentation of the new features in Guice's user guide. Are there any plans for this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "google-guice" group. To

Re: Guice 2 prerelease snapshot 20090205

2009-02-08 Thread Stuart McCulloch
2009/2/9 je...@swank.ca > > I've tagged a new snapshot and uploaded new binaries for a new > prerelease. This is a preview of Guice 2. Since the previous 20081123 > snapshot, we've improved servlets, private modules, assisted inject > and performance. This .zip includes the guice jar, extension j

Re: Guice 2 prerelease snapshot 20090205

2009-02-08 Thread Dhanji R. Prasanna
congratulations jesse and thanks for all your hard work. =) On Mon, Feb 9, 2009 at 7:37 AM, je...@swank.ca wrote: > > I've tagged a new snapshot and uploaded new binaries for a new > prerelease. This is a preview of Guice 2. Since the previous 20081123 > snapshot, we've improved servlets, privat

Guice 2 prerelease snapshot 20090205

2009-02-08 Thread je...@swank.ca
I've tagged a new snapshot and uploaded new binaries for a new prerelease. This is a preview of Guice 2. Since the previous 20081123 snapshot, we've improved servlets, private modules, assisted inject and performance. This .zip includes the guice jar, extension jars, and javadoc: http://google-g