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 Details

    • DefaultListenersFactory

      public DefaultListenersFactory()
  • Method Details

    • getSupportedTypes

      public Collection<Class<?>> getSupportedTypes()
    • setSupportedTypes

      public void setSupportedTypes(Collection<Class<?>> supportedTypes)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • getListeners

      public <T> List<T> getListeners(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Class<T> listenerType)
      Description copied from interface: ListenersFactory
      Returns instances of listeners for a specific type.
      Specified by:
      getListeners in interface ListenersFactory
      Parameters:
      facetSearchConfig - - the facet search configuration
      indexedType - - the indexed type
      listenerType - - 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

      protected <T> List<T> loadIndexedTypeListeners(IndexedType indexedType, Class<T> listenerType)
    • loadListeners

      protected <T> List<T> loadListeners(Collection<String> beanNames, Class<T> listenerType)
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
    • getGlobalListeners

      protected Map<Class<?>,List<Object>> getGlobalListeners()