Class HybrisApplicationEventMulticaster

java.lang.Object
org.springframework.context.event.AbstractApplicationEventMulticaster
org.springframework.context.event.SimpleApplicationEventMulticaster
de.hybris.platform.servicelayer.event.impl.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">

  • Constructor Details

    • HybrisApplicationEventMulticaster

      public HybrisApplicationEventMulticaster()
  • Method Details

    • 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(RuntimeException e, org.springframework.context.ApplicationEvent event)
    • getApplicationListeners

      public 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()
    • getDecorators

      protected List<EventDecorator<AbstractEvent>> getDecorators(AbstractEvent event)
    • supportsEventType

      public boolean supportsEventType(EventDecorator<AbstractEvent> decorator, Class<? extends AbstractEvent> eventType)
    • setAllDecorators

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