com.lightdev.app.shtm.plugin
Class PluginManager

java.lang.Object
  extended by com.lightdev.app.shtm.plugin.PluginManager

public class PluginManager
extends java.lang.Object

Finds and loads plug-ins of application SimplyHTML.


Constructor Summary
PluginManager(java.awt.Frame owner)
          construct a new PluginManager and load all available plug-ins.
 
Method Summary
 java.lang.ClassLoader getPluginLoader()
           
 java.lang.Object[] getPluginNames()
           
 void loadPlugins()
          load all plug-ins found in the plug-in path
 SHTMLPlugin pluginForName(java.lang.String guiName)
          get a loaded plug-in by its GUI name.
 java.util.Enumeration plugins()
          get all plug-ins loaded by this PluginManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManager

public PluginManager(java.awt.Frame owner)
construct a new PluginManager and load all available plug-ins.

Method Detail

plugins

public java.util.Enumeration plugins()
get all plug-ins loaded by this PluginManager


getPluginLoader

public java.lang.ClassLoader getPluginLoader()

pluginForName

public SHTMLPlugin pluginForName(java.lang.String guiName)
get a loaded plug-in by its GUI name.

Parameters:
guiName - the GUI name of this plaug-in
Returns:
the plug-in having the given GUI name, or null of no plug-in with that name is present

getPluginNames

public java.lang.Object[] getPluginNames()

loadPlugins

public void loadPlugins()
load all plug-ins found in the plug-in path