|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.plugin.impl.AbstractPlugin
com.atlassian.plugin.impl.DefaultDynamicPlugin
public class DefaultDynamicPlugin
A dynamically loaded plugin is loaded through the plugin class loader.
Field Summary |
---|
Fields inherited from interface com.atlassian.plugin.Plugin |
---|
NAME_COMPARATOR |
Constructor Summary | |
---|---|
DefaultDynamicPlugin(DeploymentUnit deploymentUnit,
PluginClassLoader loader)
|
Method Summary | |
---|---|
void |
close()
Free any resources held by this plugin. |
java.lang.ClassLoader |
getClassLoader()
Get the classloader for the plugin. |
DeploymentUnit |
getDeploymentUnit()
|
java.net.URL |
getResource(java.lang.String name)
Retrieve the URL of the resource from the plugin. |
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()
Whether or not this plugin can 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.plugin.Plugin |
---|
addModuleDescriptor, containsSystemModule, getDateLoaded, getI18nNameKey, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginInformation, getPluginsVersion, isEnabled, isEnabledByDefault, isSystemPlugin, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginsVersion, setResources, setSystemPlugin |
Methods inherited from interface com.atlassian.plugin.Resourced |
---|
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public DefaultDynamicPlugin(DeploymentUnit deploymentUnit, PluginClassLoader loader)
Method Detail |
---|
public java.lang.Class loadClass(java.lang.String clazz, java.lang.Class callingClass) throws java.lang.ClassNotFoundException
Plugin
loadClass
in interface DynamicPlugin
loadClass
in interface Plugin
clazz
- The name of the class to be loadedcallingClass
- The class calling the loading (used to help find a classloader)
java.lang.ClassNotFoundException
public boolean isUninstallable()
Plugin
isUninstallable
in interface DynamicPlugin
isUninstallable
in interface Plugin
public java.net.URL getResource(java.lang.String name)
Plugin
getResource
in interface DynamicPlugin
getResource
in interface Plugin
name
- the name of the resource to be loaded
public java.io.InputStream getResourceAsStream(java.lang.String name)
Plugin
getResourceAsStream
in interface DynamicPlugin
getResourceAsStream
in interface Plugin
name
- The name of the resource to be loaded.
public java.lang.ClassLoader getClassLoader()
Plugin
getClassLoader
in interface DynamicPlugin
getClassLoader
in interface Plugin
public boolean isDynamicallyLoaded()
isDynamicallyLoaded
in interface DynamicPlugin
isDynamicallyLoaded
in interface Plugin
public DeploymentUnit getDeploymentUnit()
public boolean isDeleteable()
Plugin
isDeleteable
in interface DynamicPlugin
isDeleteable
in interface Plugin
public void setDeletable(boolean deletable)
setDeletable
in interface DynamicPlugin
public boolean isBundledPlugin()
Plugin
isBundledPlugin
in interface DynamicPlugin
isBundledPlugin
in interface Plugin
public void setBundled(boolean bundled)
setBundled
in interface DynamicPlugin
public void close()
Plugin
Plugin
.
close
in interface DynamicPlugin
close
in interface Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |