Class CatalogStartupIndexer

  • All Implemented Interfaces:
    org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

    public class CatalogStartupIndexer
    extends Object
    implements org.springframework.context.SmartLifecycle
    Support optional product reindex at application startup. This is driven via the broadleaf.catalog.reindex.startup property.
    Author:
    Jeff Fischer
    • Constructor Detail

      • CatalogStartupIndexer

        public CatalogStartupIndexer​(com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle