Package de.xima.fc.plugin.event
Interface IPluginLifecycleEvent
-
public interface IPluginLifecycleEventEvent that is fired during various phases of a plugin's lifecycle, before and after a singleIFCPluginis installed, activated, deactivated, or uninstalled.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EPluginLifecycleEventphase()The phase of the lifecycle, either before or after the plugin is installed, activated, deactivated, or uninstalled.IFCPluginplugin()The plugin that is being affected.default <Plugin extends IFCPlugin>
Pluginplugin(Class<Plugin> pluginClass)Gets the affected plugin cast to the specified class, or null if the plugin is not of that class.PluginRuntimeruntime()The runtime that contains the plugin being affected.
-
-
-
Method Detail
-
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
IFCPlugin plugin()
The plugin that is being affected.- Returns:
- The affected plugin.
-
plugin
default <Plugin extends IFCPlugin> Plugin plugin(Class<Plugin> pluginClass)
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.
-
-