Vincent Massol wrote:

>> 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?
> 
Looking at RESTlet source there is a default constructor in the Resource
class that is commented with the following lines:

/**
 * Special constructor used by IoC frameworks. Note that the init()
 * method MUST be invoked right after the creation of the handler in
 * order to keep a behavior consistent with the normal three arguments
 * constructor.
 */

So in principle it is possible to integrate plexus and restlet.
I am also looking at the sonatype example you posted some time ago in
order to understand how. Hopefully I will come back with a solution soon.

-Fabio
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to