Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Servoy can be extended in various ways:

  1. Plugins
  2. Beans
  3. Custom Direct Java code (in SmartClient)calling

 

Comment
what about Inclusion of javascript libraries/components (in MobileClient) 

With this you can essentially use This allows for use of nearly any existing Java functionality inside Servoy and , even integrate with native applications such as web-browsers.  

 Writing extensions requires understanding of Java.

...

Plugins can be written for the Server, SmartClient and WebClient, see IServerPlugin, ISmartClientPlugin and IClientPlugin from API docs.

A plugin is capable to expose Java methods as JavaScript functions, which can seen/used by Servoy developers via the Solution Navigator.

The plugin packing mechanism allows to specify all needed resources/libs for remote loading by SmartClient in a Java WebStart jnlp file.

Many plugins shipped with servoy are opensource and even shipping with Java source inside, see for example the mail.jar plugin file in default install 'plugins' directory.

...

Servoy allows usage of regular Java Beans in SmartClient, to utilize some databinding they can implement IServoyAwareBean (or subclasses) see API docs.

By default all Java methods on a bean are exposed as JavaScript functions, which can seen/used by Servoy developers via the Solution Navigator.

For loading additional libs a bean can specify all libs in the manifest.

To make beans for Web and SmartClient the IServoyBeanFactory can be utilized, see the source of the DBTreeView bean (which is shipping with Servoy)

Custom Java Code

In Smart and WebClient its possible to call any static Java method, like

Code Block
var mytime = Packages.java.lang.System.currentTimeMillis();

Public Java API

For information on the usable Servoy API, see the Servoy API documentation online at: http://www.servoy.com/docs/public-api/

External docs

Checkout the comprehensive overview for building plugins and beans for Servoy.

Existing extensions

Besides default extensions shipping with Servoy, many Third-party extensions are available at ServoyForge.