Package com.atlassian.plugin.impl
Class DefaultDynamicPlugin
java.lang.Object
com.atlassian.plugin.impl.AbstractPlugin
com.atlassian.plugin.impl.DefaultDynamicPlugin
- All Implemented Interfaces:
Plugin,PluginInternal,Resourced,ScopeAware,Comparable<Plugin>
A dynamically loaded plugin is loaded through the plugin class loader.
-
Field Summary
Fields inherited from class com.atlassian.plugin.impl.AbstractPlugin
pluginArtifact -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDynamicPlugin(DeploymentUnit deploymentUnit, PluginClassLoader loader) DefaultDynamicPlugin(PluginArtifact pluginArtifact, PluginClassLoader loader) -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String name) getResourceAsStream(String name) booleanbooleanThis plugin is dynamically loaded, so returns true.boolean<T> Class<T>protected voidPerform any internal uninstallation logic.Methods inherited from class com.atlassian.plugin.impl.AbstractPlugin
addDynamicModuleDescriptor, addModuleDescriptor, cleanVersionString, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getDependencies, getDynamicModuleDescriptors, getI18nNameKey, getInstallationMode, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginArtifact, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hasAllPermissions, install, installInternal, isBundledPlugin, isEnabledByDefault, isSystemPlugin, removeDynamicModuleDescriptor, removeModuleDescriptor, resolve, setBundledPlugin, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, toString, uninstall
-
Constructor Details
-
DefaultDynamicPlugin
-
DefaultDynamicPlugin
-
-
Method Details
-
loadClass
- Throws:
ClassNotFoundException
-
isUninstallable
public boolean isUninstallable() -
getResource
-
getResourceAsStream
-
getClassLoader
-
isDynamicallyLoaded
public boolean isDynamicallyLoaded()This plugin is dynamically loaded, so returns true.- Returns:
- true
-
isDeleteable
public boolean isDeleteable() -
uninstallInternal
protected void uninstallInternal()Description copied from class:AbstractPluginPerform any internal uninstallation logic. Subclasses should only throwPluginException.- Overrides:
uninstallInternalin classAbstractPlugin
-