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

Field Summary
private  Core core
           
private static boolean DEBUG
           
private  ElementManager elemMgr
           
private  EventManager eventMgr
           
private  MainFrame frame
           
private static Class[] PLUGIN_CLASSES
           
private  List plugins
           
 
Constructor Summary
PluginManager()
           
 
Method Summary
 void addClasspathPlugins()
           
 void addPlugin(Class c)
          Adds a new instance of the given class to the list of plugins.
 void addPlugin(IPluginElement ipe)
           
 void addPlugins(Class[] classes)
           
 void addPlugins(URL[] urls)
           
private static void debug(String text)
           
 String getName()
           
 IPluginElement[] getPlugins()
           
 int getVersion()
           
protected  boolean hasClassElement(Class c)
           
 void setup(Core core)
           
 void teardown()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PluginManager

public PluginManager()
Method Detail

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