Class DefaultIndexerWorkerFactory
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorkerFactory
-
- All Implemented Interfaces:
IndexerWorkerFactory
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class DefaultIndexerWorkerFactory extends java.lang.Object implements IndexerWorkerFactory, org.springframework.context.ApplicationContextAware
Default implementation ofIndexerWorkerFactory
.
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerWorkerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexerWorker
createIndexerWorker(FacetSearchConfig facetSearchConfig)
Creates a new indexer worker.org.springframework.context.ApplicationContext
getApplicationContext()
java.lang.String
getWorkerBeanId()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setWorkerBeanId(java.lang.String workerBeanId)
-
-
-
Method Detail
-
getWorkerBeanId
public java.lang.String getWorkerBeanId()
-
setWorkerBeanId
public void setWorkerBeanId(java.lang.String workerBeanId)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
createIndexerWorker
public IndexerWorker createIndexerWorker(FacetSearchConfig facetSearchConfig) throws IndexerException
Description copied from interface:IndexerWorkerFactory
Creates a new indexer worker.- Specified by:
createIndexerWorker
in interfaceIndexerWorkerFactory
- Parameters:
facetSearchConfig
- - the facet search configuration- Returns:
- the new worker
- Throws:
IndexerException
- if an error occurs during the worker creation
-
-