Page 1 of 1

--Registering server-side plugins

PostPosted: Mon Nov 17, 2014 1:13 pm
by Development@SIB


This article is outdated - please use our new system at

https://doc.sibvisions.com




It's possible to use custom plugins to extend or configure the JVx' server implementation. With JVx 2.1 it will be possible to implement custom plugins. The interface is com.sibvisions.rad.server.plugin.IServerPlugin and has a small number of methods:

Syntax: [ Download ] [ Hide ]
public interface IServerPlugin
{
    public void install(IServer pServer);
    public void uninstall(IServer pServer);
}

The server will load all plugins from the server zone. Simply register your plugin via config.xml:

Syntax: [ Download ] [ Hide ]
<?xml version="1.0" encoding="UTF-8"?>

<server>  

  ...  
  <plugin class="com.special.plugin.MyPlugin" />  

</server>


It's guaranteed that the default server configuration was finished before a plugin will be installed.