On Feb 2, 2007, at 9:55 PM, Vincent Massol wrote:
On Feb 2, 2007, at 9:43 PM, Sergiu Dumitriu wrote:
I think you should reconsider this, if I
understood things correctly.
Api.getContext is a method that can be called from any velocity
code, and the XWikiContext class should NOT be freely available.
Right. Ok, so what you're saying is that getContext should be
protected instead of public?
I thought about this before implementing it but then the Api
constructor is public and takes a XWikiContext object. Thus I guess
what we are really saying is that either we should use Context
instead of XWikiContext and leave everything public or make the
constructor and the getContext method protected.
I think the protected solution is the best for now (it certainly is
the easiest).
[snip]
-Vincent
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface
r�volutionnaire.
http://fr.mail.yahoo.com