Package org.pf4j

Interface PluginStatusProvider

All Known Implementing Classes:
DefaultPluginStatusProvider

public interface PluginStatusProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disables a plugin from being loaded.
    void
    enablePlugin(String pluginId)
    Enables a plugin that has previously been disabled.
    boolean
    Checks if the plugin is disabled or not
  • Method Details

    • isPluginDisabled

      boolean isPluginDisabled(String pluginId)
      Checks if the plugin is disabled or not
      Parameters:
      pluginId - the unique plugin identifier, specified in its metadata
      Returns:
      if the plugin is disabled or not
    • disablePlugin

      void disablePlugin(String pluginId)
      Disables a plugin from being loaded.
      Parameters:
      pluginId - the unique plugin identifier, specified in its metadata
      Throws:
      PluginRuntimeException - if something goes wrong
    • enablePlugin

      void enablePlugin(String pluginId)
      Enables a plugin that has previously been disabled.
      Parameters:
      pluginId - the unique plugin identifier, specified in its metadata
      Throws:
      PluginRuntimeException - if something goes wrong