Discussion:
[lsc-changes] [Ldap Synchronization...] page changed: documentation:2.1:development:addingplugin
webmaster
2013-06-27 07:43:37 UTC
Permalink
A page in your DokuWiki was added or changed. Here are the details:

Date : 2013/06/27 09:43
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
IP-Address : 195.68.92.104
Hostname : host.104.92.68.195.rev.coltfrance.com
Old Revision: http://lsc-project.org/wiki/documentation/2.1/development/addingplugin?rev=1326234831
New Revision: http://lsc-project.org/wiki/documentation/2.1/development/addingplugin
Edit Summary: Updated to the latest version avaiable on the 2.0 branch documentation
User : sbahloul

@@ -12,5 +12,19 @@

A service plugin includes :
* a XSD extension to define the settings of the plugin service
* the plugin service which should implement either [[http://lsc-project.org/javadoc/latest/org/lsc/service/class-use/IService.html|IService]] for a source service or [[http://lsc-project.org/javadoc/latest/index.html?org/lsc/service/IWritableService.html|IWritableService]] for a destination service
- * and maybe a connection definition
+ * and maybe a connection definition if it isn't already defined in LSC
+
+ ====Sample service plugin====
+
+ 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]]
+ * Generate the corresponding source :
+ <code script>$JAVA_HOME/bin/xjc -p com.foo.bar.generated \
+ -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.
+ * 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]]
+ * 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]]
+ * 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)
--
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/
Loading...