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, Resourced, java.lang.Comparable<Plugin>
public class UnloadablePlugin
- extends StaticPlugin
This class represents a Plugin that was not able to be loaded by the PluginManager.
- See Also:
DefaultPluginManager
| Methods inherited from class com.atlassian.plugin.impl.AbstractPlugin |
addModuleDescriptor, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getDateLoaded, getI18nNameKey, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, install, installInternal, isBundledPlugin, isEnabled, isSystemPlugin, removeModuleDescriptor, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, uninstall |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnloadablePlugin
public UnloadablePlugin()
UnloadablePlugin
public UnloadablePlugin(java.lang.String text)
- Parameters:
text - The error text- Since:
- 2.0.0
isUninstallable
public boolean isUninstallable()
- Description copied from class:
StaticPlugin
- Static plugins loaded from the classpath can't be uninstalled.
- Specified by:
isUninstallable in interface Plugin- Overrides:
isUninstallable in class StaticPlugin
- Returns:
true if this plugin can be 'uninstalled'.
setDeletable
public void setDeletable(boolean deletable)
isDeleteable
public boolean isDeleteable()
- Description copied from interface:
Plugin
- Should the plugin file be deleted on unistall?
- Specified by:
isDeleteable in interface Plugin- Overrides:
isDeleteable in class StaticPlugin
- Returns:
true if this plugin file should be deleted on unistall.
setUninstallable
public void setUninstallable(boolean uninstallable)
isEnabledByDefault
public boolean isEnabledByDefault()
- Specified by:
isEnabledByDefault in interface Plugin- Overrides:
isEnabledByDefault in class AbstractPlugin
getErrorText
public java.lang.String getErrorText()
setErrorText
public void setErrorText(java.lang.String errorText)
close
public void close()
- Description copied from interface:
Plugin
- Free any resources held by this plugin. To be called during uninstallation of the
Plugin.
- Specified by:
close in interface Plugin- Overrides:
close in class AbstractPlugin
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractPlugin
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.