Changes for page Creating XWiki Components

Last modified by Simon Urli on 2023/10/10

From version 50.1
edited by slauriere
on 2012/10/08
Change comment: There is no comment for this version
To version 51.1
edited by slauriere
on 2012/10/08
Change comment: added a reference to the way to obtain a reference to a ComponentManager

Summary

Details

Page properties
Content
... ... @@ -325,6 +325,8 @@
325 325  List<Object> results = query.execute();
326 326  {{/code}}
327 327  
328 +NB: a reference to a ComponentManager can be obtained through injection, as explained on the [[Component module extension page>>extensions:Extension.Component Module#HGettingaccesstotheComponentManager]].
329 +
328 328  == The XWiki context ==
329 329  
330 330  Note that the XWiki context is deprecated. It was an older way of keeping track of the current request, which had to be passed around from method to method, looking like a [[ball and chain>>http://en.wikipedia.org/wiki/Ball_and_chain]] present everywhere in the code.
... ... @@ -381,6 +381,6 @@
381 381  
382 382  Enjoy!
383 383  
384 -= See also
386 += See also =
385 385  
386 386  * [[extensions:Extension.Component Module]]

Get Connected