Package com.morpheusdata.core
Interface PluginInterface
- All Known Implementing Classes:
Plugin
public interface PluginInterface
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Gets the code of the current plugin.getName()
void
This is a hook called by thePluginManager
when a plugin is loaded into memory.void
Called when a plugin is being removed from the plugin manager (aka Uninstalled)void
void
setDescription
(String description) void
setFileName
(String fileName) void
setIssueTrackerUrl
(String issueTrackerUrl) void
void
setSourceCodeLocationUrl
(String sourceCodeLocationUrl) void
setVersion
(String version) void
setWebsiteUrl
(String websiteUrl)
-
Method Details
-
initialize
void initialize()This is a hook called by thePluginManager
when a plugin is loaded into memory. In many cases no code execution should be needed in this phase, but some scenarios may require this. -
onDestroy
void onDestroy()Called when a plugin is being removed from the plugin manager (aka Uninstalled) -
getName
String getName() -
setName
-
getCode
String getCode()Gets the code of the current plugin. This is an internal name that must be unique across plugins.- Returns:
- the code for the plugin
-
getFileName
String getFileName() -
setFileName
-
getVersion
String getVersion() -
setVersion
-
getDescription
String getDescription() -
setDescription
-
getAuthor
String getAuthor() -
setAuthor
-
getWebsiteUrl
String getWebsiteUrl() -
setWebsiteUrl
-
getSourceCodeLocationUrl
String getSourceCodeLocationUrl() -
setSourceCodeLocationUrl
-
getIssueTrackerUrl
String getIssueTrackerUrl() -
setIssueTrackerUrl
-