Interface PluginManager

    • Method Detail

      • getPluginLifecycleEventDispatcher

        EventDispatcher<PluginManagerListener> getPluginLifecycleEventDispatcher()
        Returns:
        PluginLifecycleListener events dispatcher. Could not exist in the spring context.
      • unloadPlugin

        List<PluginInfo> unloadPlugin​(@NotNull
                                      PluginInfo pluginInfo)
                               throws UnloadPluginException
        Tries to unload a plugin in runtime. Also unloads dependent plugins if any
        Parameters:
        pluginInfo - plugin to be unloaded
        Returns:
        list of unloaded plugins (including dependent on current). The list is topo-sorted (dependent plugins placed before dependency in the list)
        Throws:
        UnloadPluginException - if unload is impossible (plugin is not reloadable) or exception occurred during unload
        PluginNotLoadedException - if the plugin is not loaded
        Since:
        2018.2
      • loadPlugins

        void loadPlugins()
        Scan plugins folders for plugins. Plugin is detected by registered PluginFileSystemLookup implementations. If plugin with same name is found again, it will override the first occurrence of the plugin. Warning message will be shown no that case. Plugins with names specified in .BuildServer/config/disabled_plugins.txt are treated as disabled and ignored
        Parameters:
        paths - filesystem paths to scan plugins
      • loadPlugins

        void loadPlugins​(Collection<PluginInfo> pluginsToLoad)
        load specified collection of plugins. The same as invocation loadPlugin(PluginInfo) for each plugin in topological order.
        Since:
        2021.1.1
      • getDetectedPlugins

        @NotNull
        Collection<PluginInfo> getDetectedPlugins()
        Enumerates all loaded plugins. This function may return empty collection if called while plugins are loading.
        Returns:
        collection of loaded plugin infos
        Since:
        5.1
      • getNotLoadedPlugins

        @NotNull
        Collection<NotLoadedPlugin> getNotLoadedPlugins()
        Enumerates plugins that were not loaded. This function may return empty collection if called while plugins are loading.
        Since:
        2017.2