Class OrderedApplicationEventMulticaster

  • 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 OrderedApplicationEventMulticaster
    extends org.springframework.context.event.SimpleApplicationEventMulticaster
    ApplicationEventMulticaster that will respect values returned by ApplicationListeners that are also Ordered. If there is a mixture of ordered and non-ordered ApplicationListeners, all ordered ApplicationListeners will precede all non-ordered ApplicationListeners. This class must be registered as a bean with the name applicationEventMulticaster.

    See SPR-5240.

    Author:
    mlowery
    See Also:
    AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void multicastEvent​(org.springframework.context.ApplicationEvent event)  
      • 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, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
    • Constructor Detail

      • OrderedApplicationEventMulticaster

        public OrderedApplicationEventMulticaster()
      • OrderedApplicationEventMulticaster

        public OrderedApplicationEventMulticaster​(org.springframework.beans.factory.BeanFactory beanFactory)
    • Method Detail

      • multicastEvent

        public void multicastEvent​(org.springframework.context.ApplicationEvent event)
        Specified by:
        multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster
        Overrides:
        multicastEvent in class org.springframework.context.event.SimpleApplicationEventMulticaster