public interface IFCPlugin extends ITransferable, INameProviding, INamedUiElement
install(IPluginInstallData)
: When a user upload a plugin for the first time, it is installed and the
install method is invoked once.initialize(IPluginInitializeData)
: After the plugin was installed, it may be activated and deactivated
multiple times. The initialize method is called each time the plugin is activated.shutdown(IPluginShutdownData)
: Similarly, the shutdown method is called each time the plugin is
deactivated.uninstall(IPluginUninstallData)
: Finally, when the plugin is deleted from the system, the shutdown
method is called once.IPluginDefaultLifecycleData.getProperties()
, the
plugin is deactivated and then activated again. This also means that while a plugin is active, its configuration
cannot change and must not be modified.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_FILENAME
Deprecated.
|
ATTR_NAME, COL_NAME
ATTR_DISPLAY_NAME
Modifier and Type | Method and Description |
---|---|
default String |
getDescription()
Deprecated.
|
default String |
getDescription(Locale locale)
Getter for the description of this plugin.
|
default String |
getDisplayName(Locale locale) |
String |
getName()
Getter for the name of this plugin.
|
default void |
initialize(IPluginInitializeData initializeData)
Callback method that is invoked when this plugin is initialized.
|
default void |
initPlugin()
Deprecated.
|
default void |
install(IPluginInstallData installData)
Callback method that is invoked when this plugin is installed.
|
default void |
shutdown()
Deprecated.
|
default void |
shutdown(IPluginShutdownData shutdownData)
Callback method that is invoked when this plugin is shut down.
|
default void |
uninstall(IPluginUninstallData uninstallData)
Callback method that is invoked when this plugin is uninstalled.
|
@Deprecated static final String CONFIG_FILENAME
IPluginFileHelper.getPropertiesFile()
from IPluginDefaultLifecycleData.getFileHelper()
.default void initialize(IPluginInitializeData initializeData) throws FCPluginException
initializeData
- IPluginInitializeData
FCPluginException
- May be thrown when an error occurred during the initialization process. When an error is
thrown, this plugin will be deactivated and not put into service.default void shutdown(IPluginShutdownData shutdownData) throws FCPluginException
shutdownData
- IPluginShutdownData
FCPluginException
- May be throw when an error occurred during the shutdown process. Note that throwing an
error will not prevent the plugin from being shut down.default void uninstall(IPluginUninstallData uninstallData) throws FCPluginException
uninstallData
- IPluginUninstallData
FCPluginException
- May be thrown when an error occurred during the uninstall process. Note that throwing an
error will not prevent the plugin from being uninstalled.default void install(IPluginInstallData installData) throws FCPluginException
installData
- IPluginInstallData
FCPluginException
- May be thrown when an error occurred during the installation process. When an error is
thrown, the plugin will be deactivated and not put into service.String getName()
getName
in interface INameProviding
String
The name of this plugin.default String getDescription(Locale locale)
locale
- The locale for which to get the description.null
if no description is available.default String getDisplayName(Locale locale)
getDisplayName
in interface INamedUiElement
@Deprecated default String getDescription()
getDescription(Locale)
null
if no description is available.@Deprecated default void initPlugin() throws FCPluginException
initialize(IPluginInitializeData)
FCPluginException
- May be thrown when an error occurred during the initialization process. When an error is
thrown, this plugin will be deactivated and not put into service.@Deprecated default void shutdown()
shutdown(IPluginShutdownData)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.