On Jan 5, 2009, at 3:21 PM, Fabio Mancinelli wrote: > Vincent Massol wrote: > >> ... and I don't know how RESTlet works... :) >> >> Who's instantiating PageResource? Is it us or the RESTlet framework? > > AFAIK It's RESTlet. > I just configure a route by passing the class: > > router.attach(UriConstants.PAGE_VERSION_URI_TEMPLATE, > PageResource.class); > > Then RESTlet does all the magic when an actual request is received > (i.e., instantiate the class and pass the actual context, request, > response to the resource's constructor).
There must be a way to pass information to the Resource. Maybe there's a notion of Context somewhere? If so then we should put the Component Manager reference in it so that PageResource have access to it. Thanks -Vincent http://xwiki.com http://massol.net http://xwiki.org _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

