Clear ! Thanks for the explanation :)
2014-05-21 19:27 GMT+01:00 Sergiu Dumitriu <sergiu(a)xwiki.org>rg>:
On 05/21/2014 02:11 PM, walid yaich wrote:
the
second parameter is called data in your code and it's already a
XWikiContext object you don't have to do a hack to get it.
Sorry... yes, i got
it now, but if source is an XWIKIDocument and data is
an XWIKIContext, why they are called source and data ? i'll change them
in
my code to document and context.
Because the observation module is not only about document changes, but
any type of events, in which case the "source" of the event isn't always
a document, and the additional data doesn't have to be the context.
--
Sergiu Dumitriu
http://purl.org/net/sergiu
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs