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 PluginDescription
getDescription()
Returns the description of the plugin.String
getFileName()
Returns the file name of the plugin.Boolean
getLoadOnStartup()
Returnstrue
if the plugin shall be loaded on the startup of the editor,false
otherwise.GenericPlugin
getPlugin()
Returns the plugin.URL
getPluginLocation()
Returns the plugin location.URL
getPluginUrl()
void
setDescription(PluginDescription description)
Sets the description.void
setLoadOnStartup(Boolean loadOnStartup)
Sets the flag indicating whether a plugin should be loaded on the startup of the editor.void
setPlugin(GenericPlugin plugin)
Sets the plugin.void
setPluginLocation(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
-true
if 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:
setDescription
in interfacePluginEntry
- Parameters:
description
- the description to be set.
-
getDescription
Returns the description of the plugin.- Specified by:
getDescription
in interfacePluginEntry
- Returns:
- the description of the plugin.
-
getFileName
Returns the file name of the plugin.- Specified by:
getFileName
in interfacePluginEntry
- Returns:
- DOCUMENT ME!
-
setLoadOnStartup
Sets the flag indicating whether a plugin should be loaded on the startup of the editor.- Specified by:
setLoadOnStartup
in interfacePluginEntry
- Parameters:
loadOnStartup
- flag indicating whether a plugin should be loaded on the startup of the editor.
-
getLoadOnStartup
Returnstrue
if the plugin shall be loaded on the startup of the editor,false
otherwise.- Specified by:
getLoadOnStartup
in interfacePluginEntry
- Returns:
true
if the plugin shall be loaded on the startup of the editor,false
otherwise.
-
setPlugin
Sets the plugin.- Specified by:
setPlugin
in interfacePluginEntry
- Parameters:
plugin
- the plugin to be set.
-
getPlugin
Returns the plugin.- Specified by:
getPlugin
in interfacePluginEntry
- Returns:
- the plugin.
-
setPluginLocation
Sets the plugin location.- Specified by:
setPluginLocation
in interfacePluginEntry
- Parameters:
pluginLocation
- plugin location to be set.
-
getPluginLocation
Returns the plugin location.- Specified by:
getPluginLocation
in interfacePluginEntry
- Returns:
- the plugin location.
-
getPluginUrl
- Specified by:
getPluginUrl
in interfacePluginEntry
- Throws:
MalformedURLException
-