[xwiki-dev] [API] New Api.getContext() method?

Vincent Massol vincent at massol.net
Fri Feb 2 17:30:08 CET 2007


ok, I've added the new getContext() method and moved all core code to  
use it. I've not modified the plugins in xwiki-plugins that are not  
part of the build yet.

Now we need to decide if we want to move the Api.context variable  
from protected to private (as it should be to force the usage of the  
accessor).

The only issue is that existing plugins will fail to work against the  
new version. They'll need to be modified to use getContext().

WDYT?

Note that we cannot put a deprecation on this unfortunately...

Thanks
-Vincent

On Feb 2, 2007, at 1:22 PM, Vincent Massol wrote:

> Hi,
>
> I'd like to propose adding a new Api.getContext() method. Plugins  
> are currently using this.context to get access to it. I'd like to  
> add this method and make the context instance variable private.
>
> This is pretty minor and I don't see any negative point of doing it  
> as it's already there, just not explicit.
>
> Let me know.
>
> Thanks
> -Vincent


	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com




More information about the devs mailing list