org.liquidsite.app.plugin
Class PluginLoader

java.lang.Object
  extended byorg.liquidsite.app.plugin.PluginLoader

public class PluginLoader
extends java.lang.Object

A plugin loader and manager. This class handles the initialization and loading of the application plugins.


Constructor Summary
PluginLoader()
           
 
Method Summary
 void shutdown()
          Shuts down the plugin loader and deinitializes all loaded plugins.
 void startup(java.io.File dir)
          Initializes the plugin loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLoader

public PluginLoader()
Method Detail

startup

public void startup(java.io.File dir)
             throws PluginException
Initializes the plugin loader. All the plugins found in the specified directory will automatically be loaded and initialized.

Parameters:
dir - the plugin directory
Throws:
PluginException - if some plugin failed to load or initialize correctly

shutdown

public void shutdown()
Shuts down the plugin loader and deinitializes all loaded plugins.