public class BundledPluginLoader extends ScanningPluginLoader
This loader can source plugins from:
getListSuffix() suffix, where each line of that
file gives the path to a Plugin artifact.
pluginArtifactFactory, pluginFactories, plugins, scanner| Constructor and Description |
|---|
BundledPluginLoader(File source,
List<PluginFactory> pluginFactories,
PluginEventManager eventManager)
Construct a bundled plugin loader for a directory or list file source.
|
BundledPluginLoader(URL zipUrl,
File pluginPath,
List<PluginFactory> pluginFactories,
PluginEventManager eventManager)
Construct a bundled plugin loader for a zip source.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getListSuffix()
The suffix used for bundled plugin list files.
|
protected Plugin |
postProcess(Plugin plugin)
Template method that can be used by a specific
PluginLoader to
add information to a Plugin after it has been loaded. |
canLoad, deployPluginFromUnit, discardPlugin, isDynamicPluginLoader, loadAllPlugins, loadFoundPlugins, onShutdown, removePlugin, shutDown, supportsAddition, supportsRemovalpublic BundledPluginLoader(File source, List<PluginFactory> pluginFactories, PluginEventManager eventManager)
source - a directory of containing plugin artifacts, or a file with suffix
getListSuffix() containing a list of paths to plugin artifacts.pluginFactories - as per ScanningPluginLoader.eventManager - as per ScanningPluginLoader.public BundledPluginLoader(URL zipUrl, File pluginPath, List<PluginFactory> pluginFactories, PluginEventManager eventManager)
For backwards compatibility, if the zipUrl is in fact a file url (acccording to
FileUtils.toFile(java.net.URL)), this constructor has the same semantics as
BundledPluginLoader(File, List, PluginEventManager) where the first argument
is the file referred to by zipUrl, and the pluginPath argument is ignored. That
constructor should be used directly in such cases.
zipUrl - a url to a zipFile containing plugin artifacts, or a file url to a directory or
list file.pluginPath - path to the directory to expand zipUrl.pluginFactories - as per ScanningPluginLoader.eventManager - as per ScanningPluginLoader.public static String getListSuffix()
protected Plugin postProcess(Plugin plugin)
ScanningPluginLoaderPluginLoader to
add information to a Plugin after it has been loaded.postProcess in class ScanningPluginLoaderplugin - a plugin that has been loadedCopyright © 2014 Atlassian. All rights reserved.