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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIndexerStrategy(FacetSearchConfig facetSearchConfig) Check whether customIndexerStrategyshould be used (specified as nameindexerStrategyBeanName) by checking if BackofficeSolrSearch is configured for given name.
If it is not,DefaultIndexerStrategyFactoryis used forIndexerStrategycreation.org.springframework.context.ApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetBackofficeFacetSearchConfigService(BackofficeFacetSearchConfigService backofficeFacetSearchConfigService) voidsetDefaultIndexerStrategyFactory(DefaultIndexerStrategyFactory defaultIndexerStrategyFactory) voidsetIndexerStrategyBeanName(String indexerStrategyBeanName)
-
Constructor Details
-
BackofficeIndexerStrategyFactory
public BackofficeIndexerStrategyFactory()
-
-
Method Details
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getIndexerStrategyBeanName
-
setIndexerStrategyBeanName
-
getBackofficeFacetSearchConfigService
-
setBackofficeFacetSearchConfigService
public void setBackofficeFacetSearchConfigService(BackofficeFacetSearchConfigService backofficeFacetSearchConfigService) -
createIndexerStrategy
public IndexerStrategy createIndexerStrategy(FacetSearchConfig facetSearchConfig) throws IndexerException Check whether customIndexerStrategyshould be used (specified as nameindexerStrategyBeanName) by checking if BackofficeSolrSearch is configured for given name.
If it is not,DefaultIndexerStrategyFactoryis used forIndexerStrategycreation.- Specified by:
createIndexerStrategyin interfaceIndexerStrategyFactory- Parameters:
facetSearchConfig- - the facet search configuration- Returns:
- the new indexer strategy
- Throws:
IndexerException- if an error occurs during the strategy creation
-