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 java.lang.Object implements IndexerStrategyFactory, org.springframework.context.ApplicationContextAware
Backoffice implementation ofIndexerStrategyFactory
-
-
Constructor Summary
Constructors Constructor Description BackofficeIndexerStrategyFactory()
-
Method Summary
-
-
-
Method Detail
-
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 interfaceorg.springframework.context.ApplicationContextAware
-
getIndexerStrategyBeanName
public java.lang.String getIndexerStrategyBeanName()
-
setIndexerStrategyBeanName
public void setIndexerStrategyBeanName(java.lang.String indexerStrategyBeanName)
-
getBackofficeFacetSearchConfigService
public BackofficeFacetSearchConfigService getBackofficeFacetSearchConfigService()
-
setBackofficeFacetSearchConfigService
public void setBackofficeFacetSearchConfigService(BackofficeFacetSearchConfigService backofficeFacetSearchConfigService)
-
createIndexerStrategy
public IndexerStrategy createIndexerStrategy(FacetSearchConfig facetSearchConfig) throws IndexerException
Check whether customIndexerStrategy
should be used (specified as nameindexerStrategyBeanName
) by checking if BackofficeSolrSearch is configured for given name.
If it is not,DefaultIndexerStrategyFactory
is used forIndexerStrategy
creation.- Specified by:
createIndexerStrategy
in interfaceIndexerStrategyFactory
- Parameters:
facetSearchConfig
- - the facet search configuration- Returns:
- the new indexer strategy
- Throws:
IndexerException
- if an error occurs during the strategy creation
-
-