com.atlassian.plugin.loaders
Class BundledPluginLoader
java.lang.Object
com.atlassian.plugin.loaders.ScanningPluginLoader
com.atlassian.plugin.loaders.BundledPluginLoader
- All Implemented Interfaces:
- DynamicPluginLoader, PluginLoader
public class BundledPluginLoader
- extends ScanningPluginLoader
Plugin loader that can find plugins via a single URL, and treats all plugins loaded from
the directory as bundled plugins, meaning they can can be upgraded, but not deleted.
Depending on the URL:
- If it is a file:// url and represents a directory, all the files in that directory are scanned.
- if it is a file:// url and represents a file with a
.list suffix, each line in that files
is read as a path to a plugin jar.
- Otherwise it assumes the URL is a zip and unzips plugins from it into a local directory,
and ensures that directory only contains plugins from that zip file. It also
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundledPluginLoader
public BundledPluginLoader(URL zipUrl,
File pluginPath,
List<PluginFactory> pluginFactories,
PluginEventManager eventManager)
postProcess
protected Plugin postProcess(Plugin plugin)
- Description copied from class:
ScanningPluginLoader
- Template method that can be used by a specific
PluginLoader to
add information to a Plugin after it has been loaded.
- Overrides:
postProcess in class ScanningPluginLoader
- Parameters:
plugin - a plugin that has been loaded
Copyright © 2013 Atlassian. All Rights Reserved.