org.graffiti.managers.pluginmgr
Class DefaultPluginEntry

java.lang.Object
  extended by org.graffiti.managers.pluginmgr.DefaultPluginEntry
All Implemented Interfaces:
Entry

public class DefaultPluginEntry
extends Object
implements Entry

Represents a plugin entry in the plugin manager.


Constructor Summary
DefaultPluginEntry(PluginDescription description, GenericPlugin plugin, Boolean loadOnStartup, URL pluginLocation)
          Constructs a new plugin entry.
DefaultPluginEntry(String fileName, PluginDescription description)
          Constructs a new plugin entry.
 
Method Summary
 PluginDescription getDescription()
          Returns the description of the plugin.
 String getFileName()
          Returns the file name of the plugin.
 Boolean getLoadOnStartup()
          Returns true 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

setDescription

public void setDescription(PluginDescription description)
Sets the description.

Specified by:
setDescription in interface Entry
Parameters:
description - the description to be set.

getDescription

public PluginDescription getDescription()
Returns the description of the plugin.

Specified by:
getDescription in interface Entry
Returns:
the description of the plugin.

getFileName

public String getFileName()
Returns the file name of the plugin.

Specified by:
getFileName in interface Entry
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 Entry
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 Entry
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 Entry
Parameters:
plugin - the plugin to be set.

getPlugin

public GenericPlugin getPlugin()
Returns the plugin.

Specified by:
getPlugin in interface Entry
Returns:
the plugin.

setPluginLocation

public void setPluginLocation(URL pluginLocation)
Sets the plugin location.

Specified by:
setPluginLocation in interface Entry
Parameters:
pluginLocation - plugin location to be set.

getPluginLocation

public URL getPluginLocation()
Returns the plugin location.

Specified by:
getPluginLocation in interface Entry
Returns:
the plugin location.


Generated at 2012-05-30 11:00:36 PM CEST