|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.loaders.ScanningPluginLoader
com.atlassian.plugin.loaders.BundledPluginLoader
public class BundledPluginLoader
A Plugin loader that manages a set of bundled plugins, meaning that they can can be upgraded, but not deleted.
This loader can source plugins from:
getListSuffix() suffix, where each line of that
file gives the path to a Plugin artifact.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.plugin.loaders.ScanningPluginLoader |
|---|
pluginArtifactFactory, pluginFactories, plugins, scanner |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.atlassian.plugin.loaders.ScanningPluginLoader |
|---|
canLoad, deployPluginFromUnit, discardPlugin, isDynamicPluginLoader, loadAllPlugins, loadFoundPlugins, onShutdown, removePlugin, shutDown, supportsAddition, supportsRemoval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
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 loaded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||