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 java.lang.Object implements ListenersFactory, org.springframework.context.ApplicationContextAware
Default implementation ofListenersFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultListenersFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.context.ApplicationContextgetApplicationContext()protected java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>>getGlobalListeners()<T> java.util.List<T>getListeners(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.lang.Class<T> listenerType)Returns instances of listeners for a specific type.java.util.Collection<java.lang.Class<?>>getSupportedTypes()protected voidloadGlobalListeners()protected <T> java.util.List<T>loadIndexConfigListeners(IndexConfig indexConfig, java.lang.Class<T> listenerType)protected <T> java.util.List<T>loadIndexedTypeListeners(IndexedType indexedType, java.lang.Class<T> listenerType)protected <T> java.util.List<T>loadListeners(java.util.Collection<java.lang.String> beanNames, java.lang.Class<T> listenerType)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetSupportedTypes(java.util.Collection<java.lang.Class<?>> supportedTypes)
-
-
-
Method Detail
-
getSupportedTypes
public java.util.Collection<java.lang.Class<?>> getSupportedTypes()
-
setSupportedTypes
public void setSupportedTypes(java.util.Collection<java.lang.Class<?>> supportedTypes)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getListeners
public <T> java.util.List<T> getListeners(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.lang.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> java.util.List<T> loadIndexConfigListeners(IndexConfig indexConfig, java.lang.Class<T> listenerType)
-
loadIndexedTypeListeners
protected <T> java.util.List<T> loadIndexedTypeListeners(IndexedType indexedType, java.lang.Class<T> listenerType)
-
loadListeners
protected <T> java.util.List<T> loadListeners(java.util.Collection<java.lang.String> beanNames, java.lang.Class<T> listenerType)
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
-
getGlobalListeners
protected java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> getGlobalListeners()
-
-