Package com.atlassian.plugin.impl
Class StaticPlugin
java.lang.Object
com.atlassian.plugin.impl.AbstractPlugin
com.atlassian.plugin.impl.StaticPlugin
- All Implemented Interfaces:
Plugin,PluginInternal,Resourced,ScopeAware,Comparable<Plugin>
- Direct Known Subclasses:
UnloadablePlugin
-
Field Summary
Fields inherited from class com.atlassian.plugin.impl.AbstractPlugin
pluginArtifact -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String name) getResourceAsStream(String name) booleanbooleanbooleanStatic plugins loaded from the classpath can't be uninstalled.<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
-
StaticPlugin
public StaticPlugin()
-
-
Method Details
-
isUninstallable
public boolean isUninstallable()Static plugins loaded from the classpath can't be uninstalled. -
loadClass
- Throws:
ClassNotFoundException
-
getClassLoader
-
getResource
-
getResourceAsStream
-
isDynamicallyLoaded
public boolean isDynamicallyLoaded() -
isDeleteable
public boolean isDeleteable() -
uninstallInternal
protected void uninstallInternal()Description copied from class:AbstractPluginPerform any internal uninstallation logic. Subclasses should only throwPluginException.- Overrides:
uninstallInternalin classAbstractPlugin
-