Package de.xima.fc.plugin.lifecycle
Interface IPluginLifecycleListener<TPlugin extends IFCPlugin>
- Type Parameters:
TPlugin
- Type of the plugin for which the listener was registered.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The callback method that is invoked when the event occurred for which the listener was registered.
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(EPluginLifecycleEvent event, PluginRuntime pluginRuntime, TPlugin plugin) The callback method that is invoked when the event occurred for which this listener was registered.
-
Method Details
-
handleEvent
void handleEvent(EPluginLifecycleEvent event, PluginRuntime pluginRuntime, TPlugin plugin) throws FCPluginException The callback method that is invoked when the event occurred for which this listener was registered.- Parameters:
event
- The event that did occur. This is the event for which this listener was registered.pluginRuntime
- The current plugin runtime of the plugin event.plugin
- The current plugin instance of the plugin event.- Throws:
FCPluginException
- May be thrown in case of an error. How this exception is handled depends on the type of the event for which this listener was registered. In general, throwing an exception behaves the same way as if the exception were thrown in one of the plugin lifecycle methods (IFCPlugin.install(de.xima.fc.interfaces.plugin.lifecycle.IPluginInstallData)
etc.).
-