Class DefaultSnIndexerItemSourceFactory
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.DefaultSnIndexerItemSourceFactory
- All Implemented Interfaces:
SnIndexerItemSourceFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultSnIndexerItemSourceFactory
extends Object
implements SnIndexerItemSourceFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation for
SnIndexerItemSourceFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<T extends AbstractSnIndexerItemSourceModel,R extends SnIndexerItemSource>
RcreateItemSource(T itemSourceModel, Map<String, Object> parameters) Creates a new instance ofSnIndexerItemSource.org.springframework.context.ApplicationContextprotected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
DefaultSnIndexerItemSourceFactory
public DefaultSnIndexerItemSourceFactory()
-
-
Method Details
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
initializeMappings
protected void initializeMappings() -
createItemSource
public <T extends AbstractSnIndexerItemSourceModel,R extends SnIndexerItemSource> R createItemSource(T itemSourceModel, Map<String, Object> parameters) throws SnIndexerExceptionDescription copied from interface:SnIndexerItemSourceFactoryCreates a new instance ofSnIndexerItemSource.- Specified by:
createItemSourcein interfaceSnIndexerItemSourceFactory- Type Parameters:
T- - the type of indexer item source modelR- - the type of indexer item source data- Parameters:
itemSourceModel- - the item source modelparameters- - the parameters- Returns:
- the new instance of
SnIndexerItemSource - Throws:
SnIndexerException- if an error occurs
-