RE: Re: Dependency injection in Restlet 2.0 with Guice

2010-12-29 Thread Tim Peierls
I've revised the RestletGuice incubator sources to deal with the change of return type of Finder.getTargetClass from Class? to Class? extends ServerResource. I've also reverted to the older name scheme. The main interface is called FinderFactory, and its methods are named finder, rather than

RE: Re: Dependency injection in Restlet 2.0 with Guice

2009-12-04 Thread Tim Peierls
With the invaluable help of Bruno Harbulot (and Thierry and Jerome!), I checked in a preliminary version of org.restlet.ext.guice to the incubator sources. I confirmed that it works for one somewhat artificial example (see org.restlet.ext.guice.example), but it needs more eyes on it, it needs

Re: Re: Dependency injection in Restlet 2.0 with Guice

2009-12-04 Thread Tim Peierls
On Fri, Dec 4, 2009 at 3:34 PM, Tim Peierls t...@peierls.net wrote: There should be no barriers to using RestletGuice.Module in conjunction with other frameworks, including guice-servlet. All you need to do is ensure that your resource bindings are made in Modules passed to the constructor of