Package org.pf4j
Interface PluginStatusProvider
- All Known Implementing Classes:
DefaultPluginStatusProvider
public interface PluginStatusProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disablePlugin
(String pluginId) Disables a plugin from being loaded.void
enablePlugin
(String pluginId) Enables a plugin that has previously been disabled.boolean
isPluginDisabled
(String pluginId) Checks if the plugin is disabled or not
-
Method Details
-
isPluginDisabled
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
Disables a plugin from being loaded.- Parameters:
pluginId
- the unique plugin identifier, specified in its metadata- Throws:
PluginRuntimeException
- if something goes wrong
-
enablePlugin
Enables a plugin that has previously been disabled.- Parameters:
pluginId
- the unique plugin identifier, specified in its metadata- Throws:
PluginRuntimeException
- if something goes wrong
-