com.atlassian.plugin.impl
Class UnloadablePlugin

java.lang.Object
  extended by com.atlassian.plugin.impl.AbstractPlugin
      extended by com.atlassian.plugin.impl.StaticPlugin
          extended by 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

Field Summary
 
Fields inherited from interface com.atlassian.plugin.Plugin
NAME_COMPARATOR
 
Constructor Summary
UnloadablePlugin()
           
UnloadablePlugin(java.lang.String text)
           
 
Method Summary
 void close()
          Free any resources held by this plugin.
 java.lang.String getErrorText()
           
 boolean isDeleteable()
          Should the plugin file be deleted on unistall?
 boolean isEnabledByDefault()
           
 boolean isUninstallable()
          Static plugins loaded from the classpath can't be uninstalled.
 void setDeletable(boolean deletable)
           
 void setErrorText(java.lang.String errorText)
           
 void setUninstallable(boolean uninstallable)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.plugin.impl.StaticPlugin
getClassLoader, getResource, getResourceAsStream, isDynamicallyLoaded, loadClass, uninstallInternal
 
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
 

Constructor Detail

UnloadablePlugin

public UnloadablePlugin()

UnloadablePlugin

public UnloadablePlugin(java.lang.String text)
Parameters:
text - The error text
Since:
2.0.0
Method Detail

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.