This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--Registering server-side plugins

Documents for the development of and with JVx.

--Registering server-side plugins

Postby Development@SIB » Mon Nov 17, 2014 1:13 pm



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.
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation