Changes for page Creating XWiki Components

Last modified by Simon Urli on 2023/10/10

<
From version < 69.2 >
edited by Vincent Massol
on 2017/09/01
To version < 69.3 >
edited by Vincent Massol
on 2017/09/01
>
Change comment: Updated the relative links.

Summary

Details

Page properties
Content
... ... @@ -2,7 +2,7 @@
2 2  {{toc/}}
3 3  {{/box}}
4 4  
5 -This tutorial guides you through the creation of a XWiki component, which is a way to extend or customize the XWiki platform. Indeed the XWiki platform is composed of components and it's possible to replace the default implementations with your own implementations. It's also possible to add new component implementations to extend the platform such as by implementing new [[Rendering Macros>>DevGuide.RenderingMacroTutorial]].
5 +This tutorial guides you through the creation of a XWiki component, which is a way to extend or customize the XWiki platform. Indeed the XWiki platform is composed of components and it's possible to replace the default implementations with your own implementations. It's also possible to add new component implementations to extend the platform such as by implementing new [[Rendering Macros>>platform:DevGuide.RenderingMacroTutorial]].
6 6  
7 7  {{info}}
8 8  Components replace the older plugin architecture which has been deprecated a while ago.
... ... @@ -407,7 +407,7 @@
407 407  }
408 408  {{/code}}
409 409  
410 -If you want not just to use the Execution Context, but to make something available in every execution context, you can create an implementation of the **{{scm project="xwiki-commons" path="xwiki-commons-core/xwiki-commons-context/src/main/java/org/xwiki/context/ExecutionContextInitializer.java"}}ExecutionContextInitializer{{/scm}}** component, and populate newly created execution contexts, just like with [[velocity contexts>>#HFromwikipages]].
410 +If you want not just to use the Execution Context, but to make something available in every execution context, you can create an implementation of the **{{scm project="xwiki-commons" path="xwiki-commons-core/xwiki-commons-context/src/main/java/org/xwiki/context/ExecutionContextInitializer.java"}}ExecutionContextInitializer{{/scm}}** component, and populate newly created execution contexts, just like with [[velocity contexts>>platform:DevGuide.WritingComponents#HFromwikipages]].
411 411  
412 412  == Code outside components ==
413 413  

Get Connected