public interface Plugin
Module and ModuleFactory are strongly connected. Below shows licecycle methods in the particular
situations.
ModuleFactory.preInit()Module.init() for every module belongs to this module factory, in plugin dependency orderModuleFactory.postInit()Module.enableOnStartup() or Module.disableOnStartup() for every module belongs to this module factory, in
plugin dependency orderModule.multiTenantEnableOnStartup() or Module.multiTenantDisableOnStartup() for every module belongs to
this module factory, for every tenant, in plugin dependency orderPluginState.ENABLING:
Module.enable()Module.multiTenantEnable() for every tenantPluginState.DISABLED state.
Module.enable()Module.multiTenantEnable() for every tenantPluginState.TEMPORARY state, the state is changed to PluginState.ENABLING and the system is
restarted.
Module.disable()Module.multiTenantDisable() for every tenantPluginState.ENABLING and the system is
restarted.| Modifier and Type | Method and Description |
|---|---|
int |
compareVersion(Version version)
Compares version of the plugin with given version.
|
String |
getFilename()
Returns name the file with plugin.
|
String |
getIdentifier()
Returns plugin's identifier, it is unique in the whole system.
|
PluginInformation |
getPluginInformation()
Returns additional information.
|
Set<PluginDependencyInformation> |
getRequiredPlugins()
Returns requirements information.
|
PluginState |
getState()
Returns state of the plugin, only
PluginState.ENABLED plugins are usable in system. |
Version |
getVersion()
Returns version of the plugin.
|
boolean |
hasState(PluginState expectedState)
Checks if plugin has expected state.
|
boolean |
isSystemPlugin()
Returns true for system plugin, it means that plugin cannot be disabled and removed.
|
int compareVersion(Version version)
Version.compareTo(Version)String getFilename()
String getIdentifier()
PluginInformation getPluginInformation()
Set<PluginDependencyInformation> getRequiredPlugins()
PluginState getState()
PluginState.ENABLED plugins are usable in system.Version getVersion()
boolean hasState(PluginState expectedState)
expectedState - expected stateboolean isSystemPlugin()
Copyright © 2010-2025 Qcadoo Limited