java.lang.Object | |
↳ | com.atlassian.plugin.impl.AbstractPlugin |
Known Direct Subclasses |
Known Indirect Subclasses |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.plugin.Plugin
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Free any resources held by this plugin.
| |||||||||||
Compares this Plugin to another Plugin for order.
| |||||||||||
Disables the plugin.
| |||||||||||
Enables the plugin.
| |||||||||||
The date this plugin was loaded into the system.
| |||||||||||
Returns the i18nKey used to get an internationalised name for this plugin.
| |||||||||||
Get the
ModuleDescriptor for a particular key. | |||||||||||
Returns the module descriptors for this plugin
| |||||||||||
Returns the non-localised name of this plugin if defined.
| |||||||||||
Returns this plugin's current state.
| |||||||||||
Gets the version of the plugins system to handle this plugin
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Get a
List of all the descriptors
. | |||||||||||
Get a list of all
descriptors of a particular
type. | |||||||||||
Get a
ResourceLocation of a particular type and name. | |||||||||||
Installs the plugin into any internal, managing container.
| |||||||||||
Whether the plugin is a "bundled" plugin that can't be removed.
| |||||||||||
Whether the plugin is a "system" plugin that shouldn't be made visible to the user.
| |||||||||||
Setter for the enabled state of a plugin.
| |||||||||||
Sets the i18nKey used to get an internationalised name for this plugin.
| |||||||||||
Sets the non-localised name of this plugin.
| |||||||||||
Sets the version of the plugins system
| |||||||||||
Uninstalls the plugin from any internal container.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Only sets the plugin state if it is in the expected state.
| |||||||||||
Perform any internal disabling logic.
| |||||||||||
Perform any internal enabling logic.
| |||||||||||
Perform any internal installation logic.
| |||||||||||
Perform any internal uninstallation logic.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.Plugin
| |||||||||||
From interface
com.atlassian.plugin.Resourced
| |||||||||||
From interface
java.lang.Comparable
|
Free any resources held by this plugin. To be called during uninstallation of the Plugin
.
Compares this Plugin to another Plugin for order. The primary sort field is the key, and the secondary field is the version number.
otherPlugin | The plugin to be compared. |
---|
The date this plugin was loaded into the system.
Returns the i18nKey used to get an internationalised name for this plugin.
This corresponds to the value of the i18n-name-key
field in the plugin's XML configuration file.
You would expect a plugin developer to fill in one of either name
, or i18n-name-key
,
but the framework does no validation and makes no guarantees that this is the case.
Get the ModuleDescriptor
for a particular key. Returns null if the plugin does not exist.
Note: The getModule()
may throw ClassCastException if the expected type is incorrect.
key | the String complete key of the module, in the form "org.example.plugin:module-key". |
---|
ModuleDescriptor
of the expected type.
Returns the module descriptors for this plugin
Returns the non-localised name of this plugin if defined.
This corresponds to the value of the name
field in the plugin's XML configuration file.
You would expect a plugin developer to fill in one of either name
, or i18n-name-key
,
but the framework does no validation and makes no guarantees that this is the case.
Returns this plugin's current state.
Gets the version of the plugins system to handle this plugin
This method is deprecated.
No replacement.
Get a ResourceDescriptor
of a particular type and name.
Get a List
of all the descriptors
.
Note: since 2.2 this list must be immutable, previously modifying this list could modify the underlying list.
Get a list of all descriptors
of a particular
type.
Note: since 2.2 this list must be immutable, previously this list was modifiable but modifications would not be reflected in the underlying list.
Get a ResourceLocation
of a particular type and name.
Whether the plugin is a "bundled" plugin that can't be removed.
true
if this plugin is a "bundled" plugin.
Whether the plugin is a "system" plugin that shouldn't be made visible to the user.
true
if this plugin is a "system" plugin.Setter for the enabled state of a plugin. If this is set to false then the plugin will not execute.
Sets the i18nKey used to get an internationalised name for this plugin.
i18nNameKey | the i18n Name Key. |
---|
Sets the non-localised name of this plugin.
name | the name. |
---|
Sets the version of the plugins system
pluginsVersion | The version |
---|
Uninstalls the plugin from any internal container. This method will be called on every shutdown. Unless an
exception is thrown, the plugin should be in the UNINSTALLED
state. If the plugin is already
in the UNINSTALLED
state, nothing will happen.
Only sets the plugin state if it is in the expected state.
requiredExistingState | The expected state |
---|---|
desiredState | The desired state |
Perform any internal disabling logic. Subclasses should only throw
PluginException
.
PluginException | If the plugin could not be disabled |
---|
Perform any internal enabling logic. Subclasses should only throw
PluginException
.
PluginException | If the plugin could not be enabled |
---|
Perform any internal installation logic. Subclasses should only throw
PluginException
.
PluginException | If the plugin could not be installed |
---|
Perform any internal uninstallation logic. Subclasses should only throw
PluginException
.
PluginException | If the plugin could not be uninstalled |
---|