Hi all,

I finished to switch to a component based architecture, so in order to
install annotation feature you only have to :

 - put xwiki-rest-annotation-0.0.1-SNAPSHOT.jar in WEB-INF/lib/

 - put xwiki-component-annotation-0.0.1-SNAPSHOT.jar in WEB-INF/lib/

 - put java-diff-1.1.0.jar in WEB-INF/lib/
(download from
https://java-diff.dev.java.net/servlets/ProjectDocumentList?folderID=10482)

 - import java-application-annotation-0.0.1-SNAPSHOT.xar in your wiki
and add Panels.AnnotationManager to a Panel (Administration > Presentation)

you can get sources here :
http://svn.xwiki.org/svnroot/xwiki/sandbox/xwiki-annotation/

Regards, Lucien Pereira.

Fabio Mancinelli wrote:
> On May 18, 2009, at 7:39 PM, Vincent Massol wrote:
> 
>>>
>> hmm so there's still something not quite right since we have several
>> instances of the same component instantiated in the system: the ones
>> from:
>>
>> List<XWikiRestComponent> components =
>> componentManager.lookupList(XWikiRestComponent.class);
> 
>> and the ones from
>>
>> public <T> T getInstance(Class<T> clazz) throws InstantiateException
>>
>> In the first case all you need is actually the class name and not the
>> object, right?
>>
> Yes. The first lookup is only needed in order to retrieve class names  
> and not the objects. In fact I release all the objects right after the  
> lookup. Actual objects are allocated on demand later by using the  
> factory. It's the restlet plumbing that does that (afaik, it's one  
> object per request)
> 
> -Fabio
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs

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

Reply via email to