Page History
...
Since the class which implements the IServerPlugin, ISmartClientPlugin or IClientPlugin is one file among many inside the jar, it's advised indicate which file is the plugin entry point.
From 2022.06 this is mandatory to have
The plugin jar can use Java Service Provider to expose Servoy Plugin classes. There should be a file inside the plugin jar at the path: META-INF/services/com.servoy.j2db.plugins.IPlugin
which contains a line for each class in the jar that implements IPlugin). The plugin should also have a default constructor (with no parameters). If file com.servoy.j2db.plugins.IPlugin
is missing or contains invalid entries Servoy will automatically scan the jar for all classes that implement interface IPlugin. An example of file content (for whois plugin) is:
...
Code Block |
---|
var domainName = ""; var result = ""; function onQueryWhois() { if (domainName != null && domainName.length > 0) { result = plugins.whois.query(domainName, "whois.internic.net"); } } |
Running Smart Client