net.groboclown.gui.pluginapp.v1
Class PluginManager
java.lang.Object
|
+--net.groboclown.gui.pluginapp.v1.PluginManager
- All Implemented Interfaces:
- IElement, Serializable
- public class PluginManager
- extends Object
- implements IElement
Stores all the datastructures for the installer app.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
plugins
private List plugins
frame
private MainFrame frame
eventMgr
private EventManager eventMgr
elemMgr
private ElementManager elemMgr
core
private Core core
DEBUG
private static final boolean DEBUG
PLUGIN_CLASSES
private static final Class[] PLUGIN_CLASSES
PluginManager
public PluginManager()
getName
public String getName()
- Specified by:
getName
in interface IElement
getVersion
public int getVersion()
- Specified by:
getVersion
in interface IElement
setup
public void setup(Core core)
- Specified by:
setup
in interface IElement
teardown
public void teardown()
- Specified by:
teardown
in interface IElement
getPlugins
public IPluginElement[] getPlugins()
addClasspathPlugins
public void addClasspathPlugins()
addPlugins
public void addPlugins(URL[] urls)
addPlugins
public void addPlugins(Class[] classes)
addPlugin
public void addPlugin(Class c)
- Adds a new instance of the given class to the list of plugins.
If the specific class has already been instantiated in the
element list, then it will be ignored. In order to bypass this to
get multiple plugins of the same class, use the instance form of
addPlugin.
addPlugin
public void addPlugin(IPluginElement ipe)
hasClassElement
protected boolean hasClassElement(Class c)
debug
private static final void debug(String text)
Written under the LGPL