Package org.graffiti.managers.pluginmgr
Class DefaultPluginEntry
java.lang.Object
org.graffiti.managers.pluginmgr.DefaultPluginEntry
- All Implemented Interfaces:
PluginEntry
public class DefaultPluginEntry extends Object implements PluginEntry
Represents a plugin entry in the plugin manager.
-
Constructor Summary
Constructors Constructor Description DefaultPluginEntry(String fileName, PluginDescription description)Constructs a new plugin entry.DefaultPluginEntry(PluginDescription description, GenericPlugin plugin, Boolean loadOnStartup, URL pluginLocation)Constructs a new plugin entry. -
Method Summary
Modifier and Type Method Description PluginDescriptiongetDescription()Returns the description of the plugin.StringgetFileName()Returns the file name of the plugin.BooleangetLoadOnStartup()Returnstrueif the plugin shall be loaded on the startup of the editor,falseotherwise.GenericPlugingetPlugin()Returns the plugin.URLgetPluginLocation()Returns the plugin location.URLgetPluginUrl()voidsetDescription(PluginDescription description)Sets the description.voidsetLoadOnStartup(Boolean loadOnStartup)Sets the flag indicating whether a plugin should be loaded on the startup of the editor.voidsetPlugin(GenericPlugin plugin)Sets the plugin.voidsetPluginLocation(URL pluginLocation)Sets the plugin location.
-
Constructor Details
-
DefaultPluginEntry
public DefaultPluginEntry(PluginDescription description, GenericPlugin plugin, Boolean loadOnStartup, URL pluginLocation)Constructs a new plugin entry.- Parameters:
description- the description of this pluginplugin- the plugin.loadOnStartup-trueif the plugin should be loaded at the startup of the plugin manager.pluginLocation- the location of the plugin.
-
DefaultPluginEntry
Constructs a new plugin entry.- Parameters:
fileName- the file name of the plugindescription- the description of this plugin
-
-
Method Details
-
setDescription
Sets the description.- Specified by:
setDescriptionin interfacePluginEntry- Parameters:
description- the description to be set.
-
getDescription
Returns the description of the plugin.- Specified by:
getDescriptionin interfacePluginEntry- Returns:
- the description of the plugin.
-
getFileName
Returns the file name of the plugin.- Specified by:
getFileNamein interfacePluginEntry- Returns:
- DOCUMENT ME!
-
setLoadOnStartup
Sets the flag indicating whether a plugin should be loaded on the startup of the editor.- Specified by:
setLoadOnStartupin interfacePluginEntry- Parameters:
loadOnStartup- flag indicating whether a plugin should be loaded on the startup of the editor.
-
getLoadOnStartup
Returnstrueif the plugin shall be loaded on the startup of the editor,falseotherwise.- Specified by:
getLoadOnStartupin interfacePluginEntry- Returns:
trueif the plugin shall be loaded on the startup of the editor,falseotherwise.
-
setPlugin
Sets the plugin.- Specified by:
setPluginin interfacePluginEntry- Parameters:
plugin- the plugin to be set.
-
getPlugin
Returns the plugin.- Specified by:
getPluginin interfacePluginEntry- Returns:
- the plugin.
-
setPluginLocation
Sets the plugin location.- Specified by:
setPluginLocationin interfacePluginEntry- Parameters:
pluginLocation- plugin location to be set.
-
getPluginLocation
Returns the plugin location.- Specified by:
getPluginLocationin interfacePluginEntry- Returns:
- the plugin location.
-
getPluginUrl
- Specified by:
getPluginUrlin interfacePluginEntry- Throws:
MalformedURLException
-