Interface PluginsState

  • All Known Implementing Classes:
    PluginsStateImpl

    public interface PluginsState
    Holds state of all known plugins
    • Method Detail

      • getLoadedPlugins

        @NotNull
        Collection<PluginInfo> getLoadedPlugins()
        Returns:
        collection of currently loaded plugins
      • getLoadedPluginsData

        @NotNull
        Collection<PluginData> getLoadedPluginsData()
        Returns:
        collection of currently loaded plugins data
      • getNotLoadedPlugins

        @NotNull
        Collection<NotLoadedPlugin> getNotLoadedPlugins()
        Returns:
        collections of plugins not loaded currently
      • findNotLoadedPlugins

        @NotNull
        Collection<NotLoadedPlugin> findNotLoadedPlugins​(@NotNull
                                                         String id)
        Parameters:
        id - id of plugins to find
        Returns:
        collections of plugins with provided id not loaded currently
      • getAllPlugins

        @NotNull
        Collection<PluginInfo> getAllPlugins​(@NotNull
                                             String id)
        Parameters:
        id - id of plugins to find
        Returns:
        collection of all known plugins with provided id - both loaded and unloaded
      • getAllPlugins

        @NotNull
        Collection<PluginInfo> getAllPlugins()
        Returns:
        collection of all known plugins - both loaded and unloaded
      • findLoadedPlugin

        @Nullable
        PluginInfo findLoadedPlugin​(@NotNull
                                    String id)
        Parameters:
        id - id of plugin to find
        Returns:
        PluginInfo of loaded plugin if it exists and is loaded or null otherwise
      • isPluginLoaded

        boolean isPluginLoaded​(@NotNull
                               String id)
        Parameters:
        id - id of plugin to find
        Returns:
        true if the plugin with this id is loaded
      • hasNotLoadedPlugin

        boolean hasNotLoadedPlugin​(@NotNull
                                   String id)
        Parameters:
        id - id of plugin to find
        Returns:
        true if there is any not loaded plugin with this id
      • findPluginData

        @Nullable
        PluginData findPluginData​(@NotNull
                                  String pluginName)
        Parameters:
        id - id of plugin to find
        Returns:
        PluginData of loaded plugin if it exists and is loaded or null otherwise