|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.plugin.PluginMgr.PluginEntry
protected class PluginMgr.PluginEntry
A PluginEntry contains various information about a particular plugin type.
| Field Summary | |
|---|---|
protected java.util.Map |
instances
Table containing the existing instances of this plugin as unique id (String) - Plugin pair. |
protected java.lang.Class |
pluginClass
Class of this plugin. |
protected int |
status
Status of this plugin |
| Constructor Summary | |
|---|---|
PluginMgr.PluginEntry(PluginProfile profile)
Creates a new plugin entry for a plugin based on the given profile. |
|
PluginMgr.PluginEntry(java.lang.String pluginClassName)
Creates a new plugin entry for a plugin with the given name. |
|
| Method Summary | |
|---|---|
void |
addInstance(Plugin plugin,
Plugin parent)
Adds an existing instance of a plugin. |
Plugin |
createInstance(Plugin parent)
Creates a new instance of the plugin. |
Plugin |
createInstance(PluginState state,
Plugin parent)
Creates a new instance of a plugin with the given state data. |
java.lang.ClassLoader |
getPluginClassLoader()
Gets the separate class loader for the plugin or null. |
java.lang.String |
getPluginClassName()
Gets the class name. |
Plugin |
getPluginInstance(java.lang.String uniqueId)
Returns the instance of the plugin with the given unique id or null if none such present. |
java.util.Iterator |
getPluginInstances()
Returns an iterator over all instances of this plugin. |
boolean |
removeInstance(Plugin plugin)
Removes the given plugin from the user interface structure as well as from the plugin manager itself. |
void |
setPluginClassLoader(java.lang.ClassLoader pluginClassLoader)
Sets the separate class loader for the plugin or null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient java.lang.Class pluginClass
protected java.util.Map instances
Plugin pair.
protected int status
| Constructor Detail |
|---|
public PluginMgr.PluginEntry(java.lang.String pluginClassName)
pluginClassName - Plugin class namepublic PluginMgr.PluginEntry(PluginProfile profile)
profile - Plugin profile| Method Detail |
|---|
public java.lang.String getPluginClassName()
public java.lang.ClassLoader getPluginClassLoader()
public void setPluginClassLoader(java.lang.ClassLoader pluginClassLoader)
public Plugin getPluginInstance(java.lang.String uniqueId)
public java.util.Iterator getPluginInstances()
public Plugin createInstance(PluginState state,
Plugin parent)
state - Plugin state for the new pluginparent - Parent for the new plugin in the plugin tree
public Plugin createInstance(Plugin parent)
parent - Parent for the new plugin in the plugin tree
public void addInstance(Plugin plugin,
Plugin parent)
plugin - Plugin to addpublic boolean removeInstance(Plugin plugin)
plugin - Plugin to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||