Interface IPluginLifecycleEvent
public interface IPluginLifecycleEvent
Event that is fired during various phases of a plugin's lifecycle, before and after a single
IFCPlugin is
installed, activated, deactivated, or uninstalled.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionphase()The phase of the lifecycle, either before or after the plugin is installed, activated, deactivated, or uninstalled.plugin()The plugin that is being affected.default <Plugin extends IFCPlugin>
PluginGets the affected plugin cast to the specified class, or null if the plugin is not of that class.runtime()The runtime that contains the plugin being affected.
-
Method Details
-
phase
EPluginLifecycleEvent phase()The phase of the lifecycle, either before or after the plugin is installed, activated, deactivated, or uninstalled.- Returns:
- The lifecycle event phase.
-
plugin
-
plugin
Gets the affected plugin cast to the specified class, or null if the plugin is not of that class.- Type Parameters:
Plugin- The type of the plugin.- Parameters:
pluginClass- The class to cast the plugin to.- Returns:
- The affected plugin cast to the specified class, or null if the plugin is not of that class.
-
runtime
PluginRuntime runtime()The runtime that contains the plugin being affected.- Returns:
- The plugin runtime.
-