| java.lang.Object | ||
| ↳ | com.atlassian.plugin.impl.AbstractPlugin | |
| ↳ | com.atlassian.plugin.impl.DefaultDynamicPlugin | |
A dynamically loaded plugin is loaded through the plugin class loader.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.plugin.Plugin
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the classloader for the plugin.
| |||||||||||
This method is deprecated.
Since 2.2.0, use
getPluginArtifact() instead
| |||||||||||
Retrieve the URL of the resource from the plugin.
| |||||||||||
Load a given resource from the plugin.
| |||||||||||
Whether the plugin is a "bundled" plugin that can't be removed.
| |||||||||||
Should the plugin file be deleted on unistall?
| |||||||||||
This plugin is dynamically loaded, so returns true.
| |||||||||||
Whether or not this plugin can be 'uninstalled'.
| |||||||||||
Get the plugin to load a specific class.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Perform any internal uninstallation logic.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.plugin.impl.AbstractPlugin
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.Plugin
| |||||||||||
From interface
com.atlassian.plugin.PluginArtifactBackedPlugin
| |||||||||||
From interface
com.atlassian.plugin.Resourced
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
Get the classloader for the plugin.
Retrieve the URL of the resource from the plugin.
| name | the name of the resource to be loaded |
|---|
Load a given resource from the plugin. Plugins that are loaded dynamically will need to implement this in a way that loads the resource from the same context as the plugin. Static plugins can just pull them from their own classloader.
| name | The name of the resource to be loaded. |
|---|
Whether the plugin is a "bundled" plugin that can't be removed.
true if this plugin is a "bundled" plugin.
Should the plugin file be deleted on unistall?
true if this plugin file should be deleted on unistall.
This plugin is dynamically loaded, so returns true.
Whether or not this plugin can be 'uninstalled'.
true if this plugin can be 'uninstalled'.
Get the plugin to load a specific class.
| clazz | The name of the class to be loaded |
|---|---|
| callingClass | The class calling the loading (used to help find a classloader) |
| ClassNotFoundException |
|---|
Perform any internal uninstallation logic. Subclasses should only throw
PluginException.