This is obsolete. It was there for performing cactus tests, but Vincent 
didn't like cactus so we don't have any cactus tests anymore.

Disclaimer: Vincent created cactus !

Ludovic

Denis Gervalle a écrit :
> Hi all,
>
> When the XWiki class is instantiated, it is done in a way that made it  
> almost singleton, except for one special case that seems to be for  
> test purposed, but I feel it is now useless. I am asking because if  
> XWiki is a singleton, some very often used synchronisation could be  
> optimized to avoid useless locking.
> Here is the excerpt from getMainXWiki() that shows this special case:
>
>          String xwikiname = "xwiki";
>          XWiki xwiki = null;
>          XWikiEngineContext econtext = context.getEngineContext();
>
>          try {
>              if (context.getRequest().getRequestURL().indexOf("/ 
> testbin/") != -1) {
>                  xwikiname = "xwikitest";
>                  context.setDatabase("xwikitest");
>                  context.setOriginalDatabase("xwikitest");
>              }
>          } catch (Exception e) {
>          }
>
>          context.setMainXWiki(xwikiname);
>
> Anyone knows for what it was ? is it still in use ? could it be  
> removed ?
>
> Denis
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>   


-- 
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

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

Reply via email to