Class DefaultListenersFactory
java.lang.Object
de.hybris.platform.solrfacetsearch.common.impl.DefaultListenersFactory
- All Implemented Interfaces:
ListenersFactory,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DefaultListenersFactory
extends Object
implements ListenersFactory, org.springframework.context.ApplicationContextAware
Default implementation of
ListenersFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.ApplicationContext<T> List<T>getListeners(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Class<T> listenerType) Returns instances of listeners for a specific type.Collection<Class<?>>protected voidprotected final <T> List<T>loadIndexConfigListeners(IndexConfig indexConfig, Class<T> listenerType) protected <T> List<T>loadIndexedTypeListeners(IndexedType indexedType, Class<T> listenerType) protected <T> List<T>loadListeners(Collection<String> beanNames, Class<T> listenerType) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetSupportedTypes(Collection<Class<?>> supportedTypes)
-
Constructor Details
-
DefaultListenersFactory
public DefaultListenersFactory()
-
-
Method Details
-
getSupportedTypes
-
setSupportedTypes
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getListeners
public <T> List<T> getListeners(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Class<T> listenerType) Description copied from interface:ListenersFactoryReturns instances of listeners for a specific type.- Specified by:
getListenersin interfaceListenersFactory- Parameters:
facetSearchConfig- - the facet search configurationindexedType- - the indexed typelistenerType- - the type of the listeners- Returns:
- the listeners
-
loadGlobalListeners
protected void loadGlobalListeners() -
loadIndexConfigListeners
protected final <T> List<T> loadIndexConfigListeners(IndexConfig indexConfig, Class<T> listenerType) -
loadIndexedTypeListeners
-
loadListeners
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
getGlobalListeners
-