Class HybrisApplicationEventMulticaster

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.event.ApplicationEventMulticaster

    public class HybrisApplicationEventMulticaster
    extends org.springframework.context.event.SimpleApplicationEventMulticaster
    The HybrisApplicationEventMulticaster extends the SimpleApplicationEventMulticaster so we can keep track of the listeners that are registered. Mainly it changes the visibility of getApplicationListeners() to public. See hybris jira PLA-7411

    <bean id="applicationEventMulticaster" class="de.hybris.platform.servicelayer.event.impl.HybrisApplicationEventMulticaster">

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.context.ApplicationEvent decorate​(org.springframework.context.ApplicationEvent original)  
      java.util.Collection<org.springframework.context.ApplicationListener<?>> getApplicationListeners()  
      protected java.util.List<EventDecorator<AbstractEvent>> getDecorators​(AbstractEvent event)  
      protected void handleListenerError​(java.lang.RuntimeException e, org.springframework.context.ApplicationEvent event)  
      protected boolean hasDecorators()  
      void multicastEvent​(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType)  
      protected void notifyListeners​(org.springframework.context.ApplicationEvent event)  
      protected void notifyListeners​(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType)  
      void setAllDecorators​(java.util.Collection<EventDecorator<AbstractEvent>> allDecorators)  
      boolean supportsEventType​(EventDecorator<AbstractEvent> decorator, java.lang.Class<? extends AbstractEvent> eventType)  
      • Methods inherited from class org.springframework.context.event.SimpleApplicationEventMulticaster

        getErrorHandler, getTaskExecutor, invokeListener, multicastEvent, setErrorHandler, setTaskExecutor
      • Methods inherited from class org.springframework.context.event.AbstractApplicationEventMulticaster

        addApplicationListener, addApplicationListenerBean, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, removeApplicationListenerBeans, removeApplicationListeners, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HybrisApplicationEventMulticaster

        public HybrisApplicationEventMulticaster()
    • Method Detail

      • multicastEvent

        public void multicastEvent​(org.springframework.context.ApplicationEvent event,
                                   org.springframework.core.ResolvableType eventType)
        Specified by:
        multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster
        Overrides:
        multicastEvent in class org.springframework.context.event.SimpleApplicationEventMulticaster
      • notifyListeners

        protected void notifyListeners​(org.springframework.context.ApplicationEvent event)
      • notifyListeners

        protected void notifyListeners​(org.springframework.context.ApplicationEvent event,
                                       org.springframework.core.ResolvableType eventType)
      • handleListenerError

        protected void handleListenerError​(java.lang.RuntimeException e,
                                           org.springframework.context.ApplicationEvent event)
      • getApplicationListeners

        public java.util.Collection<org.springframework.context.ApplicationListener<?>> getApplicationListeners()
        Overrides:
        getApplicationListeners in class org.springframework.context.event.AbstractApplicationEventMulticaster
      • decorate

        protected org.springframework.context.ApplicationEvent decorate​(org.springframework.context.ApplicationEvent original)
      • hasDecorators

        protected boolean hasDecorators()
      • setAllDecorators

        @Autowired(required=false)
        public void setAllDecorators​(java.util.Collection<EventDecorator<AbstractEvent>> allDecorators)