public class OrderedApplicationEventMulticaster
extends org.springframework.context.event.SimpleApplicationEventMulticaster
ApplicationEventMulticaster
that will respect values returned by ApplicationListener
s that are
also Ordered
. If there is a mixture of ordered and non-ordered ApplicationListener
s, all ordered
ApplicationListener
s will precede all non-ordered ApplicationListener
s. This class must be
registered as a bean with the name applicationEventMulticaster
.
See SPR-5240.
AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME
Constructor and Description |
---|
OrderedApplicationEventMulticaster() |
OrderedApplicationEventMulticaster(org.springframework.beans.factory.BeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
void |
multicastEvent(org.springframework.context.ApplicationEvent event) |
getErrorHandler, getTaskExecutor, invokeListener, multicastEvent, setErrorHandler, setTaskExecutor
addApplicationListener, addApplicationListenerBean, getApplicationListeners, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
public OrderedApplicationEventMulticaster()
public OrderedApplicationEventMulticaster(org.springframework.beans.factory.BeanFactory beanFactory)
public void multicastEvent(org.springframework.context.ApplicationEvent event)
multicastEvent
in interface org.springframework.context.event.ApplicationEventMulticaster
multicastEvent
in class org.springframework.context.event.SimpleApplicationEventMulticaster
Copyright © 2019 Hitachi Vantara. All rights reserved.