public class BambooPluginManager
extends com.atlassian.plugin.manager.DefaultPluginManager
implements com.atlassian.plugin.PluginController, com.atlassian.plugin.PluginAccessor, com.atlassian.plugin.PluginSystemLifecycle
Constructor and Description |
---|
BambooPluginManager(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore,
SystemPluginLoaderConfiguration loaderConfiguration,
List<com.atlassian.plugin.loaders.PluginLoader> extraPluginLoaders,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
File pluginDirectory,
com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPlugins(com.atlassian.plugin.loaders.PluginLoader loader,
Collection<com.atlassian.plugin.Plugin> pluginsToInstall)
Before adding plugins normally, check that any required plugins are enabled in the state store.
|
void |
disablePlugin(String key) |
Collection<com.atlassian.plugin.Plugin> |
getPlugins() |
static void |
onContextDestroyed() |
void |
onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event) |
addDynamicModule, addPlugin, disablePluginInternal, disablePluginModule, disablePluginModuleState, disablePluginState, disablePluginWithoutPersisting, earlyStartup, enablePlugin, enablePluginModule, enablePluginModuleState, enablePlugins, enablePluginState, getClassLoader, getDynamicModules, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getLateStartupEnableRetryProperty, getMinimumPluginVersionsFileProperty, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPluginRestartState, getPlugins, getStartupOverrideFileProperty, getState, getStore, init, installPlugin, installPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, lateStartup, newBuilder, notifyModuleDisabled, notifyModuleEnabled, notifyPluginDisabled, notifyPluginEnabled, notifyUninstallPlugin, onPluginContainerUnavailable, onPluginModuleAvailable, onPluginModuleUnavailable, onPluginRefresh, onUpdateRequiresRestartState, removeDynamicModule, removeStateFromStore, revertRestartRequiredChange, scanForNewPlugins, setPluginInstaller, shutdown, uninstall, uninstallNoEvent, uninstallPlugins, unloadPlugin, updatePlugin, warmRestart
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDynamicModule, disablePluginModule, disablePluginWithoutPersisting, enablePlugin, enablePluginModule, enablePlugins, installPlugin, installPlugins, removeDynamicModule, revertRestartRequiredChange, scanForNewPlugins, uninstall, uninstallPlugins
getClassLoader, getDynamicModules, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPluginRestartState, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin
public BambooPluginManager(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore, SystemPluginLoaderConfiguration loaderConfiguration, List<com.atlassian.plugin.loaders.PluginLoader> extraPluginLoaders, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, File pluginDirectory, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
protected void addPlugins(@Nullable com.atlassian.plugin.loaders.PluginLoader loader, Collection<com.atlassian.plugin.Plugin> pluginsToInstall) throws com.atlassian.plugin.PluginParseException
addPlugins
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginParseException
public Collection<com.atlassian.plugin.Plugin> getPlugins()
getPlugins
in interface com.atlassian.plugin.PluginAccessor
getPlugins
in class com.atlassian.plugin.manager.DefaultPluginManager
public void onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
public void disablePlugin(String key)
disablePlugin
in interface com.atlassian.plugin.PluginController
disablePlugin
in class com.atlassian.plugin.manager.DefaultPluginManager
public static void onContextDestroyed()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.