restlet + spring --- managed resources

2008-03-06 Thread Brian Donnovan
Hi everyone, i´m trying to setup restlet with spring, i´m wondering, what is the best practise with restlet resources? from my resource (eg. UserResource) í try to retrieve the requested data from a db, so what i´m trying to figure out is, whether its possible to manage the resources in spring

Re: restlet + spring --- managed resources

2008-03-06 Thread Brian Donnovan
them with Spring and use it's dependency injection mechanisms. cheers Flo Brian Donnovan schrieb: Hi everyone, i´m trying to setup restlet with spring, i´m wondering, what is the best practise with restlet resources? from my resource (eg. UserResource) í try to retrieve the requested

Re: restlet + spring --- managed resources

2008-03-07 Thread Brian Donnovan
Rhett Sutphin rhett at detailedbalance.net writes: Hi Brian, On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote: thanks for the hint, i will try it that way! just one thing, i looked at the springresource class and it seems to not have much in common with the original resource

Re: restlet + spring --- managed resources

2008-03-08 Thread Brian Donnovan
Rhett Sutphin rhett at detailedbalance.net writes: The way I handle this is to do internal configuration of the resource, including setting variants, in the init method. For example: @Override public void init(Context context, Request request, Response response) {