Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:latest:development:addingplugin [2017/01/30 17:10]
127.0.0.1 external edit
documentation:latest:development:addingplugin [2018/05/23 08:29] (current)
coudot [Sample service plugin]
Line 20: Line 20:
 Consider looking at the FooBarLscService sample as decribed below. This fake service has been designed as an extension of a SimpleJdbcDestinationService to describe an embeddable LSC : Consider looking at the FooBarLscService sample as decribed below. This fake service has been designed as an extension of a SimpleJdbcDestinationService to describe an embeddable LSC :
  
-  * Ordered List ItemFirst define the configuration extension format: [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​resources/​etc/​foobar-lsc-1.0.xsd|sample xsd]] +  * Ordered List ItemFirst define the configuration extension format 
-  * Generate the corresponding source ​ :+  * Generate the corresponding source:
 <code script>​$JAVA_HOME/​bin/​xjc -p com.foo.bar.generated \ <code script>​$JAVA_HOME/​bin/​xjc -p com.foo.bar.generated \
     -b lsc.episode src/​main/​resources/​etc/​foobar-lsc-1.0.xsd</​code>​     -b lsc.episode src/​main/​resources/​etc/​foobar-lsc-1.0.xsd</​code>​
 You will find the lsc.episode file inside the misc subdirectory of LSC source package. You will find the lsc.episode file inside the misc subdirectory of LSC source package.
-  * Load the configuration through the service constructor: [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​java/​com/​foo/​bar/​FooBarLscService.java|FooBarLscService.java]] +  * Load the configuration through the service constructor 
-  * Configure it through a pluginDestinationService node in [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​resources/​etc/​lsc.xml|lsc.xml]]+  * Configure it through a pluginDestinationService node in lsc.xml
   * Copy the XSD to your etc subdirectory (required to check the XML structure)   * Copy the XSD to your etc subdirectory (required to check the XML structure)
   * Run it with flag  -DLSC.PLUGINS.PACKAGEPATH=com.foo.bar.generated (so that JAXB parser could find the extended classes)   * Run it with flag  -DLSC.PLUGINS.PACKAGEPATH=com.foo.bar.generated (so that JAXB parser could find the extended classes)