Package org.exoplatform.commons.upgrade
Class UpgradeProductService
- java.lang.Object
-
- org.exoplatform.commons.upgrade.UpgradeProductService
-
- All Implemented Interfaces:
org.exoplatform.commons.cluster.StartableClusterAware
public class UpgradeProductService extends Object implements org.exoplatform.commons.cluster.StartableClusterAware
-
-
Field Summary
Fields Modifier and Type Field Description static org.exoplatform.commons.api.settings.data.ContextUPGRADE_PRODUCT_CONTEXT
-
Constructor Summary
Constructors Constructor Description UpgradeProductService(org.exoplatform.container.PortalContainer portalContainer, org.exoplatform.commons.info.ProductInformations productInformations, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUpgradePlugin(UpgradeProductPlugin upgradeProductPlugin)Method called by eXo Kernel to inject upgrade pluginsbooleanisDone()voidresetService()Re-import all upgrade-plugins for servicevoidstart()This method is called by eXo Kernel when starting the parent ExoContainervoidstop()
-
-
-
Constructor Detail
-
UpgradeProductService
public UpgradeProductService(org.exoplatform.container.PortalContainer portalContainer, org.exoplatform.commons.info.ProductInformations productInformations, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
-
-
Method Detail
-
addUpgradePlugin
public void addUpgradePlugin(UpgradeProductPlugin upgradeProductPlugin)
Method called by eXo Kernel to inject upgrade plugins- Parameters:
upgradeProductPlugin-
-
start
public void start()
This method is called by eXo Kernel when starting the parent ExoContainer- Specified by:
startin interfaceorg.exoplatform.commons.cluster.StartableClusterAware
-
stop
public void stop()
- Specified by:
stopin interfaceorg.exoplatform.commons.cluster.StartableClusterAware
-
isDone
public boolean isDone()
- Specified by:
isDonein interfaceorg.exoplatform.commons.cluster.StartableClusterAware
-
resetService
public void resetService()
Re-import all upgrade-plugins for service
-
-