Class DefaultSnListenerFactory

java.lang.Object
de.hybris.platform.searchservices.core.service.impl.DefaultSnListenerFactory
All Implemented Interfaces:
SnListenerFactory, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class DefaultSnListenerFactory extends Object implements SnListenerFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation of SnListenerFactory.
  • Constructor Details

    • DefaultSnListenerFactory

      public DefaultSnListenerFactory()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getListeners

      public <T> List<T> getListeners(SnContext context, Class<T> listenerType)
      Description copied from interface: SnListenerFactory
      Returns instances of listeners for a specific type.
      Specified by:
      getListeners in interface SnListenerFactory
      Parameters:
      context - - the context
      listenerType - - the type of the listeners
      Returns:
      the listeners
    • loadGlobalListeners

      protected void loadGlobalListeners()
    • loadListeners

      protected <T> void loadListeners(List<T> listeners, List<String> beanNames, Class<T> listenerType)
    • getSupportedTypes

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

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

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

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

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