Class UpgradeProductService

  • All Implemented Interfaces:
    org.exoplatform.commons.cluster.StartableClusterAware

    public class UpgradeProductService
    extends Object
    implements org.exoplatform.commons.cluster.StartableClusterAware
    • Field Detail

      • UPGRADE_PRODUCT_CONTEXT

        public static final org.exoplatform.commons.api.settings.data.Context UPGRADE_PRODUCT_CONTEXT
    • 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:
        start in interface org.exoplatform.commons.cluster.StartableClusterAware
      • stop

        public void stop()
        Specified by:
        stop in interface org.exoplatform.commons.cluster.StartableClusterAware
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface org.exoplatform.commons.cluster.StartableClusterAware
      • resetService

        public void resetService()
        Re-import all upgrade-plugins for service