public class StaticPlugin extends AbstractPlugin
NAME_COMPARATOR, VERSION_1, VERSION_2, VERSION_3| Constructor and Description |
|---|
StaticPlugin() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Get the classloader for the plugin.
|
URL |
getResource(String name)
Retrieve the URL of the resource from the plugin.
|
InputStream |
getResourceAsStream(String name)
Load a given resource from the plugin.
|
boolean |
isDeleteable()
Should the plugin file be deleted on unistall?
|
boolean |
isDynamicallyLoaded()
Whether or not this plugin is loaded dynamically at runtime.
|
boolean |
isUninstallable()
Static plugins loaded from the classpath can't be uninstalled.
|
<T> Class<T> |
loadClass(String clazz,
Class<?> callingClass)
Get the plugin to load a specific class.
|
protected void |
uninstallInternal()
Perform any internal uninstallation logic.
|
addModuleDescriptor, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateInstalled, getDateLoaded, getI18nNameKey, getInstallationMode, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hasAllPermissions, install, installInternal, isBundledPlugin, isEnabled, isEnabledByDefault, isSystemPlugin, removeModuleDescriptor, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, toString, uninstallpublic boolean isUninstallable()
true if this plugin can be 'uninstalled'.public <T> Class<T> loadClass(String clazz, Class<?> callingClass) throws ClassNotFoundException
Pluginclazz - The name of the class to be loadedcallingClass - The class calling the loading (used to help find a classloader)ClassNotFoundException - if the class cannot be located.public ClassLoader getClassLoader()
Pluginpublic URL getResource(String name)
Pluginname - the name of the resource to be loadedpublic InputStream getResourceAsStream(String name)
Pluginname - The name of the resource to be loaded.public boolean isDynamicallyLoaded()
Plugintrue if this plugin is loaded dynamically at runtime.public boolean isDeleteable()
Plugintrue if this plugin file should be deleted on unistall.protected void uninstallInternal()
AbstractPluginPluginException.uninstallInternal in class AbstractPluginCopyright © 2014 Atlassian. All rights reserved.