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 Details

    • DefaultPluginEntry

      public DefaultPluginEntry​(PluginDescription description, GenericPlugin plugin, Boolean loadOnStartup, URL pluginLocation)
      Constructs a new plugin entry.
      Parameters:
      description - the description of this plugin
      plugin - the plugin.
      loadOnStartup - true if the plugin should be loaded at the startup of the plugin manager.
      pluginLocation - the location of the plugin.
    • DefaultPluginEntry

      public DefaultPluginEntry​(String fileName, PluginDescription description)
      Constructs a new plugin entry.
      Parameters:
      fileName - the file name of the plugin
      description - the description of this plugin
  • Method Details

    • setDescription

      public void setDescription​(PluginDescription description)
      Sets the description.
      Specified by:
      setDescription in interface PluginEntry
      Parameters:
      description - the description to be set.
    • getDescription

      public PluginDescription getDescription()
      Returns the description of the plugin.
      Specified by:
      getDescription in interface PluginEntry
      Returns:
      the description of the plugin.
    • getFileName

      public String getFileName()
      Returns the file name of the plugin.
      Specified by:
      getFileName in interface PluginEntry
      Returns:
      DOCUMENT ME!
    • setLoadOnStartup

      public void setLoadOnStartup​(Boolean loadOnStartup)
      Sets the flag indicating whether a plugin should be loaded on the startup of the editor.
      Specified by:
      setLoadOnStartup in interface PluginEntry
      Parameters:
      loadOnStartup - flag indicating whether a plugin should be loaded on the startup of the editor.
    • getLoadOnStartup

      public Boolean getLoadOnStartup()
      Returns true if the plugin shall be loaded on the startup of the editor, false otherwise.
      Specified by:
      getLoadOnStartup in interface PluginEntry
      Returns:
      true if the plugin shall be loaded on the startup of the editor, false otherwise.
    • setPlugin

      public void setPlugin​(GenericPlugin plugin)
      Sets the plugin.
      Specified by:
      setPlugin in interface PluginEntry
      Parameters:
      plugin - the plugin to be set.
    • getPlugin

      public GenericPlugin getPlugin()
      Returns the plugin.
      Specified by:
      getPlugin in interface PluginEntry
      Returns:
      the plugin.
    • setPluginLocation

      public void setPluginLocation​(URL pluginLocation)
      Sets the plugin location.
      Specified by:
      setPluginLocation in interface PluginEntry
      Parameters:
      pluginLocation - plugin location to be set.
    • getPluginLocation

      public URL getPluginLocation()
      Returns the plugin location.
      Specified by:
      getPluginLocation in interface PluginEntry
      Returns:
      the plugin location.
    • getPluginUrl

      public URL getPluginUrl() throws MalformedURLException
      Specified by:
      getPluginUrl in interface PluginEntry
      Throws:
      MalformedURLException