Class BackofficeIndexerStrategyFactory

java.lang.Object
com.hybris.backoffice.solrsearch.indexer.impl.BackofficeIndexerStrategyFactory
All Implemented Interfaces:
IndexerStrategyFactory, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class BackofficeIndexerStrategyFactory extends Object implements IndexerStrategyFactory, org.springframework.context.ApplicationContextAware
Backoffice implementation of IndexerStrategyFactory
  • Constructor Details

    • BackofficeIndexerStrategyFactory

      public BackofficeIndexerStrategyFactory()
  • Method Details

    • getDefaultIndexerStrategyFactory

      public DefaultIndexerStrategyFactory getDefaultIndexerStrategyFactory()
    • setDefaultIndexerStrategyFactory

      public void setDefaultIndexerStrategyFactory(DefaultIndexerStrategyFactory defaultIndexerStrategyFactory)
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • getIndexerStrategyBeanName

      public String getIndexerStrategyBeanName()
    • setIndexerStrategyBeanName

      public void setIndexerStrategyBeanName(String indexerStrategyBeanName)
    • getBackofficeFacetSearchConfigService

      public BackofficeFacetSearchConfigService getBackofficeFacetSearchConfigService()
    • setBackofficeFacetSearchConfigService

      public void setBackofficeFacetSearchConfigService(BackofficeFacetSearchConfigService backofficeFacetSearchConfigService)
    • createIndexerStrategy

      public IndexerStrategy createIndexerStrategy(FacetSearchConfig facetSearchConfig) throws IndexerException
      Check whether custom IndexerStrategy should be used (specified as name indexerStrategyBeanName) by checking if BackofficeSolrSearch is configured for given name.
      If it is not, DefaultIndexerStrategyFactory is used for IndexerStrategy creation.
      Specified by:
      createIndexerStrategy in interface IndexerStrategyFactory
      Parameters:
      facetSearchConfig - - the facet search configuration
      Returns:
      the new indexer strategy
      Throws:
      IndexerException - if an error occurs during the strategy creation