Class 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 of ListenersFactory.
    • Constructor Detail

      • DefaultListenersFactory

        public DefaultListenersFactory()
    • 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:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • getListeners

        public <T> java.util.List<T> getListeners​(FacetSearchConfig facetSearchConfig,
                                                  IndexedType indexedType,
                                                  java.lang.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> 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()