Hi Tim and Harald,
The goal and main value is see is to ensure the maximum portability of a Restlet Application from one deployment environment to another (JSE/standalone, JEE, GAE, etc.). GAE/J only provides HTTP listening through the Servlet API, so we have to use our Servlet/Restlet adaptation layer. The default way is to leverage our ServerServlet class from org.restlet.ext.servlet, but we also provide a ServletAdapter class to manual adaptation. It feels like both approaches should merge as soon as we configure the inner of the Restlet Application with Guice. Same GuiceRouter and GuiceFinder should be usable. Ive added a comment on the related RFE: Add support for Guice http://restlet.tigris.org/issues/show_bug.cgi?id=546 Harald, would you be willing to contribute your code to the Guice extension developed by Tim (with the help of Bruno Harbulot recently) and to collaborate on creating the best Guice extension possible? The current extension code is in Restlet Incubator but should find its official place in the next Restlet 2.1 version. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com/> http://www.noelios.com De : tpeie...@gmail.com [mailto:tpeie...@gmail.com] De la part de Tim Peierls Envoyé : dimanche 22 novembre 2009 22:36 À : discuss@restlet.tigris.org Objet : Re: Dependency injection in Restlet 2.0 with Guice I thought that the GAE Edition of Restlet hid the "servlet-ness" and made it possible to write standalone Restlet components that run in GAE. Is that not the case? --tim On Sun, Nov 22, 2009 at 4:09 PM, <webp...@tigris.org> wrote: Hi there, I was looking for dependency injection with guice, as I found the post from Tim. The approach described there, seems to best for a standalone setup. As I'm currently developing an application using the Google AppEngine, I was looking for an integration with a servlet based setup. I described my approach in my blog under <a href="http://haraldpehl.blogspot.com/2009/11/google-appengine-restlet.html"> http://haraldpehl.blogspot.com/2009/11/google-appengine-restlet.html</a> Greetings Harald ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423508