Package com.atlassian.plugin.impl
Class UnloadablePlugin
java.lang.Object
com.atlassian.plugin.impl.AbstractPlugin
com.atlassian.plugin.impl.StaticPlugin
com.atlassian.plugin.impl.UnloadablePlugin
- All Implemented Interfaces:
Plugin,PluginInternal,Resourced,ScopeAware,Comparable<Plugin>
This class represents a Plugin that was not able to be loaded by the PluginManager.
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.plugin.impl.AbstractPlugin
pluginArtifact -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanbooleanbooleanbooleanStatic plugins loaded from the classpath can't be uninstalled.voidsetDeletable(boolean deletable) voidsetDynamicallyLoaded(boolean dynamic) voidsetErrorText(String errorText) voidsetUninstallable(boolean uninstallable) toString()protected voidPerform any internal uninstallation logic.Methods inherited from class com.atlassian.plugin.impl.StaticPlugin
getClassLoader, getResource, getResourceAsStream, loadClassMethods inherited from class com.atlassian.plugin.impl.AbstractPlugin
addDynamicModuleDescriptor, addModuleDescriptor, cleanVersionString, 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, isSystemPlugin, removeDynamicModuleDescriptor, removeModuleDescriptor, resolve, setBundledPlugin, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, uninstall
-
Constructor Details
-
UnloadablePlugin
public UnloadablePlugin() -
UnloadablePlugin
- Parameters:
text- The error text- Since:
- 2.0.0
-
-
Method Details
-
isUninstallable
public boolean isUninstallable()Description copied from class:StaticPluginStatic plugins loaded from the classpath can't be uninstalled.- Specified by:
isUninstallablein interfacePlugin- Overrides:
isUninstallablein classStaticPlugin
-
setDeletable
public void setDeletable(boolean deletable) -
isDeleteable
public boolean isDeleteable()- Specified by:
isDeleteablein interfacePlugin- Overrides:
isDeleteablein classStaticPlugin
-
setUninstallable
public void setUninstallable(boolean uninstallable) -
isEnabledByDefault
public boolean isEnabledByDefault()- Specified by:
isEnabledByDefaultin interfacePlugin- Overrides:
isEnabledByDefaultin classAbstractPlugin
-
getErrorText
-
setErrorText
-
isDynamicallyLoaded
public boolean isDynamicallyLoaded()- Specified by:
isDynamicallyLoadedin interfacePlugin- Overrides:
isDynamicallyLoadedin classStaticPlugin
-
setDynamicallyLoaded
public void setDynamicallyLoaded(boolean dynamic) -
close
public void close()- Overrides:
closein classAbstractPlugin
-
uninstallInternal
protected void uninstallInternal()Description copied from class:AbstractPluginPerform any internal uninstallation logic. Subclasses should only throwPluginException.- Overrides:
uninstallInternalin classStaticPlugin
-
toString
- Overrides:
toStringin classAbstractPlugin
-