[Lucene] Fixing the rebuildIndex API?
jeremi joslin
jeremi at xwiki.com
Fri Feb 2 12:39:53 CET 2007
Hi,
there is a lot of problems with the API of the lucene plugin. It needs
to be completely redone.
jeremi
On 2/2/07, Vincent Massol <vincent at massol.net> wrote:
> Hi everyone,
>
> I can see the following API in LucenePluginAPI:
>
> public int rebuildIndex(XWiki wiki, Context context)
>
> I can see 2 problems with that:
>
> 1) I don't see the need for exposing the context, especially as it's
> known internally by the plugin.
> 2) Passing both the context and the wiki object seems redundant as
> it's possible to call context.getXWiki()
>
> I'm thus proposing to deprecate this method and instead replace it with:
>
> public int rebuildIndex()
>
> Ok for everyone?
>
> Thanks
> -Vincent
>
>
>
>
>
>
> ___________________________________________________________________________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
> http://fr.mail.yahoo.com
>
--
jeremi
More information about the devs
mailing list