Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.atlassian.plugin.manager.DefaultPluginManager

        com.atlassian.plugin.manager.DefaultPluginManager.Builder<T extends com.atlassian.plugin.manager.DefaultPluginManager.Builder<?>>
      • Nested classes/interfaces inherited from interface com.atlassian.plugin.PluginAccessor

        com.atlassian.plugin.PluginAccessor.Descriptor
    • 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 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, disablePluginModule, disablePluginWithoutPersisting, enablePluginModule, enablePlugins, installPlugins, removeDynamicModule, revertRestartRequiredChange, scanForNewPlugins, uninstall, uninstallPlugins
      • Methods inherited from interface com.atlassian.plugin.PluginSystemLifecycle

        init, shutdown, warmRestart
    • 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 class com.atlassian.plugin.manager.DefaultPluginManager
        Throws:
        com.atlassian.plugin.PluginParseException
      • getPlugins

        public Collection<com.atlassian.plugin.Plugin> getPlugins()
        Specified by:
        getPlugins in interface com.atlassian.plugin.PluginAccessor
        Overrides:
        getPlugins in class com.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 interface com.atlassian.plugin.PluginController
        Overrides:
        disablePlugin in class com.atlassian.plugin.manager.DefaultPluginManager
      • onContextDestroyed

        public static void onContextDestroyed()