5 Jan
2009
5 Jan
'09
2:02 p.m.
Vincent Massol wrote:
The ideal way would be for PageResource to be a component. You could then have a component map directly injected in PageResource using Plexus and you wouldn't need to use the xwiki-core dep on web.Utils which we need to get rif of.
This is a lack of knowledge of mine about plexus... PageResource (and in general every resource) must extend org.restlet.resource.Resource. Is it compatible with the plexus model? I mean there are no interfaces/implementations involved here, we just have classes. Or maybe you are talking about a factory that is injected with all the XWiki parameters and instantiates WikiResources by initializing them with those parameters? Sorry but I am not very much into plexus yet. -Fabio