public class XmlDynamicPlugin extends AbstractPlugin implements PluginArtifactBackedPlugin
NAME_COMPARATOR, VERSION_1, VERSION_2, VERSION_3| Constructor and Description |
|---|
XmlDynamicPlugin(PluginArtifact pluginArtifact) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Free any resources held by this plugin.
|
ClassLoader |
getClassLoader()
Get the classloader for the plugin.
|
PluginArtifact |
getPluginArtifact() |
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()
Whether or not this plugin can be 'uninstalled'.
|
<M> Class<M> |
loadClass(String clazz,
Class<?> callingClass)
Get the plugin to load a specific class.
|
addModuleDescriptor, 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, uninstall, uninstallInternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddModuleDescriptor, containsSystemModule, disable, enable, getActivePermissions, getDateInstalled, getDateLoaded, getI18nNameKey, getInstallationMode, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, hasAllPermissions, install, isBundledPlugin, isEnabled, isEnabledByDefault, isSystemPlugin, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginsVersion, setResources, setSystemPlugin, uninstallgetResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocationcompareTopublic XmlDynamicPlugin(PluginArtifact pluginArtifact)
public boolean isUninstallable()
PluginisUninstallable in interface Plugintrue if this plugin can be 'uninstalled'.public boolean isDeleteable()
PluginisDeleteable in interface Plugintrue if this plugin file should be deleted on unistall.public boolean isDynamicallyLoaded()
PluginisDynamicallyLoaded in interface Plugintrue if this plugin is loaded dynamically at runtime.public void close()
PluginPlugin.close in interface Pluginclose in class AbstractPluginpublic <M> Class<M> loadClass(String clazz, Class<?> callingClass) throws ClassNotFoundException
PluginloadClass in interface 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()
PlugingetClassLoader in interface Pluginpublic URL getResource(String name)
PlugingetResource in interface Pluginname - the name of the resource to be loadedpublic InputStream getResourceAsStream(String name)
PlugingetResourceAsStream in interface Pluginname - The name of the resource to be loaded.public PluginArtifact getPluginArtifact()
getPluginArtifact in interface PluginArtifactBackedPluginPluginArtifact used to create this plugin instance. Cannot be null.Copyright © 2014 Atlassian. All rights reserved.