Package com.atlassian.bamboo.plugin
Class BambooPluginManager
- java.lang.Object
-
- com.atlassian.plugin.manager.DefaultPluginManager
-
- com.atlassian.bamboo.plugin.BambooPluginManager
-
- All Implemented Interfaces:
com.atlassian.plugin.PluginAccessor
,com.atlassian.plugin.PluginController
,com.atlassian.plugin.PluginSystemLifecycle
,com.atlassian.plugin.SplitStartupPluginSystemLifecycle
- Direct Known Subclasses:
BambooPluginManagerClusterAware
public class BambooPluginManager extends com.atlassian.plugin.manager.DefaultPluginManager implements com.atlassian.plugin.PluginController, com.atlassian.plugin.PluginAccessor, com.atlassian.plugin.PluginSystemLifecycle
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPlugins(@Nullable 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)
-
Methods inherited from class com.atlassian.plugin.manager.DefaultPluginManager
addDynamicModule, disablePluginInternal, disablePluginModule, disablePluginWithoutPersisting, earlyStartup, enablePluginModule, enablePlugins, getClassLoader, getDynamicModules, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getLateStartupEnableRetryProperty, getMinimumPluginVersionsFileProperty, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getStartupOverrideFileProperty, getState, init, installPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, lateStartup, newBuilder, notifyModuleDisabled, notifyModuleEnabled, notifyUninstallPlugin, onPluginContainerUnavailable, onPluginModuleAvailable, onPluginModuleUnavailable, onPluginRefresh, onUpdateRequiresRestartState, removeDynamicModule, removeStateFromStore, revertRestartRequiredChange, scanForNewPlugins, setPluginInstaller, shutdown, uninstall, uninstallNoEvent, uninstallPlugins, unloadPlugin, updatePlugin, warmRestart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.plugin.PluginAccessor
getActiveModuleDescriptorsByClass, getClassLoader, getDynamicModules, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModuleDescriptors, getModules, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin
-
Methods inherited from interface com.atlassian.plugin.PluginController
addDynamicModule, addDynamicModule, disablePluginModule, disablePluginWithoutPersisting, enablePluginModule, enablePlugins, installPlugins, removeDynamicModule, revertRestartRequiredChange, scanForNewPlugins, uninstall, uninstallPlugins
-
-
-
-
Constructor Detail
-
BambooPluginManager
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)
-
-
Method Detail
-
addPlugins
protected void addPlugins(@Nullable @Nullable com.atlassian.plugin.loaders.PluginLoader loader, Collection<com.atlassian.plugin.Plugin> pluginsToInstall) throws com.atlassian.plugin.PluginParseException
Before adding plugins normally, check that any required plugins are enabled in the state store.- Overrides:
addPlugins
in classcom.atlassian.plugin.manager.DefaultPluginManager
- Throws:
com.atlassian.plugin.PluginParseException
-
getPlugins
public Collection<com.atlassian.plugin.Plugin> getPlugins()
- Specified by:
getPlugins
in interfacecom.atlassian.plugin.PluginAccessor
- Overrides:
getPlugins
in classcom.atlassian.plugin.manager.DefaultPluginManager
-
onPluginEnabled
public void onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
-
disablePlugin
public void disablePlugin(String key)
- Specified by:
disablePlugin
in interfacecom.atlassian.plugin.PluginController
- Overrides:
disablePlugin
in classcom.atlassian.plugin.manager.DefaultPluginManager
-
onContextDestroyed
public static void onContextDestroyed()
-
-