public class

DefaultDynamicPlugin

extends AbstractPlugin
java.lang.Object
   ↳ com.atlassian.plugin.impl.AbstractPlugin
     ↳ com.atlassian.plugin.impl.DefaultDynamicPlugin

Class Overview

A dynamically loaded plugin is loaded through the plugin class loader.

Summary

[Expand]
Inherited Fields
From interface com.atlassian.plugin.Plugin
Public Constructors
DefaultDynamicPlugin(DeploymentUnit deploymentUnit, PluginClassLoader loader)
DefaultDynamicPlugin(PluginArtifact pluginArtifact, PluginClassLoader loader)
Public Methods
ClassLoader getClassLoader()
DeploymentUnit getDeploymentUnit()
This method is deprecated. Since 2.2.0, use getPluginArtifact() instead
PluginArtifact getPluginArtifact()
URL getResource(String name)
InputStream getResourceAsStream(String name)
boolean isBundledPlugin()
Whether the plugin is a "bundled" plugin that can't be removed.
boolean isDeleteable()
boolean isDynamicallyLoaded()
This plugin is dynamically loaded, so returns true.
boolean isUninstallable()
<T> Class<T> loadClass(String clazz, Class<?> callingClass)
Protected Methods
void uninstallInternal()
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.Resourced
From interface java.lang.Comparable

Public Constructors

public DefaultDynamicPlugin (DeploymentUnit deploymentUnit, PluginClassLoader loader)

public DefaultDynamicPlugin (PluginArtifact pluginArtifact, PluginClassLoader loader)

Public Methods

public ClassLoader getClassLoader ()

public DeploymentUnit getDeploymentUnit ()

This method is deprecated.
Since 2.2.0, use getPluginArtifact() instead

public PluginArtifact getPluginArtifact ()

public URL getResource (String name)

public InputStream getResourceAsStream (String name)

public boolean isBundledPlugin ()

Whether the plugin is a "bundled" plugin that can't be removed.

Returns
  • true if this plugin is a "bundled" plugin.

public boolean isDeleteable ()

public boolean isDynamicallyLoaded ()

This plugin is dynamically loaded, so returns true.

Returns
  • true

public boolean isUninstallable ()

public Class<T> loadClass (String clazz, Class<?> callingClass)

Protected Methods

protected void uninstallInternal ()

Perform any internal uninstallation logic. Subclasses should only throw PluginException.