Plugins

description

This class allows you to manage plug-ins (jigglins).  There is only one global instance of this class.

example

if( Plugins.load( "HttpServer" ) )
var myServer = new HttpServer( 80 );
Summary
This class allows you to manage plug-ins (jigglins).
Loads a plug-in.

Functions

load

bool load(string pluginName)

Loads a plug-in.

parameters

pluginNameThe name of the plug-in.  The name should not include an extension or a directory.

returns

trueIf the plug-in was successfully loaded.
falseOtherwise.

notes

The actual file name of the plug-in is composed of prepending “jiggy.” to the pluginName parameter.  For example, if you specify the pluginName to be “Socket”, Jiggy will look for the file “jiggy.Socket”.

Jiggy will always look for plug-ins in the current bundle’s “jigglins” directory first.  If the plug-in is not found there, it will try to load it from the system using the standard library search path.  Private plug-ins should be included in your bundle’s “jigglins” directory and public plug-ins should be installed to “/usr/lib”.

bool load(string pluginName)
Loads a plug-in.