I just found out that the timeline for @Inject has shifted later, into 1Q2010. It's for a good reason -- expanded scope of the proposal -- but I think it would be better to have separate extensions for DI frameworks in Restlet 2.0, and then provide an @Inject extension for 2.1, say. My Guice-in-Restlet needs are limited to resource injection, but I think Leigh Klotz and maybe others expressed some interest in Restlet injection. Is there still an interest in this? If so, has anyone done any design work on it?
Btw, there was no signature on the post about Guice 2 + Restlet 2 + JSP -- who was that masked poster? --tim On Mon, May 18, 2009 at 11:25 AM, Rhett Sutphin <[email protected]>wrote: > Hi, > > I agree with Tim that it would be premature to start working on an > extension now. If javax.inject gets standardized and implemented in > more than one place, we should consider it then -- and consider if > there would be any value in a javax.inject extension vs. separate > extensions for various DI frameworks. > > Rhett > > On May 17, 2009, at 4:44 PM, Jerome Louvel wrote: > > > Tim, > > > > That sounds good to me, no rush! > > > > BTW, the fact that you mention Spring makes me think that we should > > also coordinate with Rhett Sutphin who is maintaining the Spring > > extension (with great care) as this might have some impact on it as > > well. > > > > Maybe, we’ll end-up deciding that a specific Guice extension is > > better… > > > > Best regards, > > Jerome Louvel > > -- > > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > > > > > > > > De : [email protected] [mailto:[email protected]] De la part de > > Tim Peierls > > Envoyé : dimanche 17 mai 2009 23:37 > > À : [email protected] > > Objet : Re: Dependency injection in Restlet 2.0 with Guice > > > > Yes, I'd be interested. I'd like to find out more about how Spring > > (and others) will support javax.inject before going any further in > > code, though. > > > > --tim > > On Sun, May 17, 2009 at 12:05 PM, Jerome Louvel < > [email protected] > > > wrote: > > Sounds good Tim. Would you be interested to contribute and maintain > > such an extension to Restlet? > > > > We could start by working in Restlet Incubator, using the > > com.google.inject package. Once javax.inject is available and the > > extension is stable, we could promote it as an official Restlet > > extension. > > > > Best regards, > > Jerome Louvel > > -- > > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > > Noelios Technologies ~ Co-founder~ http://www.noelios.com > > > > De: [email protected] [mailto:[email protected]] De la part de Tim > > Peierls > > Envoy頺 jeudi 14 mai 2009 21:53 > > > > > > : [email protected] > > Objet: Re: Dependency injection in Restlet 2.0 with Guice > > On Thu, May 14, 2009 at 3:10 PM, Jerome Louvel < > [email protected] > > > wrote: > > > > By the way, do you think it would be technically possible to develop > > a similar integration that would leverage the recently announced > > javax.inject? > > > > http://crazybob.org/2009/05/announcing-javaxinjectinject.html > > > > If so, it could be an opportunity for a new Restlet extension. > > > > I'm sure it will be possible. I haven't worked out the details, but > > such an extension would provide an additional public interface, > > org.restlet.ext.inject.FinderFactory (better name needed?) and > > hooksfor obtaining a FinderFactory implementationthat would have to > > be specific to the injector implementation. > > > > In the mean time, the nice thing about javax.inject is that you > > should be able to use com.google.inject for now and later switch > > your imports to javax.inject when the support becomes available. > > > > --tim > > > > > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2300825 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2316303

