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 Type
    Method
    Description
    The phase of the lifecycle, either before or after the plugin is installed, activated, deactivated, or uninstalled.
    The plugin that is being affected.
    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.
    The runtime that contains the plugin being affected.
  • Method Details

    • 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.