|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.impl.StaticPlugin
com.atlassian.plugin.impl.DynamicPlugin
public class DynamicPlugin
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.Plugin |
|---|
NAME_COMPARATOR |
| Constructor Summary | |
|---|---|
DynamicPlugin(DeploymentUnit deploymentUnit,
PluginsClassLoader loader)
|
|
| Method Summary | |
|---|---|
void |
close()
Free any resources held by this plugin. |
java.lang.ClassLoader |
getClassLoader()
|
DeploymentUnit |
getDeploymentUnit()
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Load a given resource from the plugin. |
boolean |
isBundledPlugin()
Whether the plugin is a "bundled" plugin that can't be removed. |
boolean |
isDeleteable()
Should the plugin file be deleted on unistall? |
boolean |
isDynamicallyLoaded()
This plugin is dynamically loaded, so returns true. |
boolean |
isUninstallable()
Static plugins loaded from the classpath can't be uninstalled. |
java.lang.Class |
loadClass(java.lang.String clazz,
java.lang.Class callingClass)
Get the plugin to load a specific class. |
void |
setBundled(boolean bundled)
|
void |
setDeletable(boolean deletable)
|
| Methods inherited from class com.atlassian.plugin.impl.StaticPlugin |
|---|
addModuleDescriptor, compareTo, containsSystemModule, getDateLoaded, getI18nNameKey, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginInformation, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabled, isEnabledByDefault, isSystemPlugin, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setResources, setSystemPlugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicPlugin(DeploymentUnit deploymentUnit,
PluginsClassLoader loader)
| Method Detail |
|---|
public java.lang.Class loadClass(java.lang.String clazz,
java.lang.Class callingClass)
throws java.lang.ClassNotFoundException
Plugin
loadClass in interface PluginloadClass in class StaticPluginclazz - The name of the class to be loadedcallingClass - The class calling the loading (used to help find a classloader)
java.lang.ClassNotFoundExceptionpublic boolean isUninstallable()
StaticPlugin
isUninstallable in interface PluginisUninstallable in class StaticPluginpublic java.io.InputStream getResourceAsStream(java.lang.String name)
Plugin
getResourceAsStream in interface PlugingetResourceAsStream in class StaticPluginname - The name of the resource to be loaded.
public java.lang.ClassLoader getClassLoader()
public boolean isDynamicallyLoaded()
isDynamicallyLoaded in interface PluginisDynamicallyLoaded in class StaticPluginpublic DeploymentUnit getDeploymentUnit()
public boolean isDeleteable()
Plugin
isDeleteable in interface PluginisDeleteable in class StaticPluginpublic void setDeletable(boolean deletable)
public boolean isBundledPlugin()
Plugin
isBundledPlugin in interface PluginisBundledPlugin in class StaticPluginpublic void setBundled(boolean bundled)
public void close()
PluginPlugin.
close in interface Pluginclose in class StaticPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||