Sorry for joining in the middle and not paying attention. Do you mean a scope annotation on the Resource class itself? I have so far not seen a need for any scope other than the implicit request scope. We do make use of objects from other scopes from within Resources, but I believe you're not asking that question. Leigh. ________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Tim Peierls Sent: Monday, November 23, 2009 2:35 PM To: [email protected] Subject: Re: Dependency injection in Restlet 2.0 with Guice <snip> Another topic: What about scopes? Servlets need scopes like request, session, conversation, etc. Only the first of those makes any sense in Restlet, but I'm having trouble imagining a strong need for it in practice, given that Resources are fundamentally request-scoped. Does anyone have an example of a need for binding in request scope that isn't trivially satisfied by Restlet already? --tim ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423620

