From version 15.2
edited by Vincent Massol
on 2019/02/08 18:28
To version 16.1
edited by Paul Libbrecht
on 2019/11/12 18:05
Change comment: Added an exaplantion that the interface/implementation separation is not usual with script-services.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.polx
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -27,7 +27,7 @@
27 27  
28 28  = Script Services =
29 29  
30 -To expose an API to a script macro you simply need to implement the ##org.xwiki.script.service.ScriptService## component role (see [[Component Module>>Extension.Component Module]] to know more about components).
30 +To expose an API to a script macro you simply need to implement the ##org.xwiki.script.service.ScriptService## component role (see [[Component Module>>Extension.Component Module]] to know more about components). Note that it is rather usual to not separate script-services between interface and implementation as the visibility is at a different level than that of java. Rather, script-service components should perform mostly delegation to other components or simple transformations (such as objects translation).
31 31  
32 32  For example:
33 33  

Get Connected