Logged out, click to login

JEDI Online help - Details



Back to unit JvPluginManager.pas Back Edit Search Administration

TJvPluginManager.LoadPlugins

Summary
Scans a folder for and loads plugins.

Description
LoadPlugins will scan a folder for plugin files and attempts to load them.<br> <br> The PluginFolder property is read to determine the folder to scan. If the PluginFolder property is empty, the executable's folder will be used instead.<br> <br> The Extensions property is read to determine the file extensions to consider as a plugin.<br> <br> For each file found the following steps will take place:<br> <br> * The OnBeforeLoad event is called.<br> * If \OnBeforeLoad has not disallowed the file to be loaded, LoadPlugin is called to load the plugin (specifying PluginKind as the plugin type). This method will call the OnNewCommand event for each<br> provided command.<br> * The OnAfterLoad event is called.<br> <br> If an exception occurred during the steps above, the OnLoadingError event will be called. Any additional files will still be loaded.<br>

See Also
TJvPluginManager.Extension, TJvPluginManager.LoadPlugin, TJvPluginManager.OnAfterLoad,
TJvPluginManager.OnBeforeLoad, TJvPluginManager.OnNewCommand, TJvPluginManager.OnPlugInError,
TJvPluginManager.PluginFolder, TJvPluginManager.PluginKind

Last changed by obones on 2009-01-05 14:58:46 CET

Copyright (c) 2004 by the JVCL Team; all rights reserved
Uses PclZip by phpconcept and parts of the PEAR library