public class XmlDynamicPlugin extends AbstractPlugin
pluginArtifact| Constructor and Description |
|---|
XmlDynamicPlugin(PluginArtifact pluginArtifact) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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 uninstall?
|
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.
|
addDynamicModuleDescriptor, addModuleDescriptor, cleanVersionString, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getDependencies, getDynamicModuleDescriptors, getI18nNameKey, getInstallationMode, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginArtifact, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hasAllPermissions, install, installInternal, isBundledPlugin, isEnabledByDefault, isSystemPlugin, removeDynamicModuleDescriptor, removeModuleDescriptor, resolve, setBundledPlugin, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, toString, uninstall, uninstallInternalpublic XmlDynamicPlugin(PluginArtifact pluginArtifact)
public boolean isUninstallable()
Plugintrue if this plugin can be 'uninstalled'.public boolean isDeleteable()
Plugintrue if this plugin file should be deleted on uninstall.public boolean isDynamicallyLoaded()
Plugintrue if this plugin is loaded dynamically at runtime.public void close()
close in class AbstractPluginpublic <M> Class<M> 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.Copyright © 2019 Atlassian. All rights reserved.