public class BroadleafApplicationEventMulticaster
extends org.springframework.context.event.SimpleApplicationEventMulticaster
implements org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
ctx |
Constructor and Description |
---|
BroadleafApplicationEventMulticaster() |
Modifier and Type | Method and Description |
---|---|
Executor |
getTaskExecutor() |
void |
multicastEvent(org.springframework.context.ApplicationEvent event)
Take care when specifying that event or application listener should be executed asynchronously.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setTaskExecutor(Executor taskExecutor) |
getErrorHandler, invokeListener, multicastEvent, setErrorHandler
addApplicationListener, addApplicationListenerBean, getApplicationListeners, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
public BroadleafApplicationEventMulticaster()
public void multicastEvent(org.springframework.context.ApplicationEvent event)
isAsynchronous()
method returns true then the event will fire asynchronously.
Be aware that the events are not durable in this case. Events that are executed asynchronously
should be used with caution, where a loss of event due to error or shutdown of the VM is not a major
concern.multicastEvent
in interface org.springframework.context.event.ApplicationEventMulticaster
multicastEvent
in class org.springframework.context.event.SimpleApplicationEventMulticaster
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public Executor getTaskExecutor()
getTaskExecutor
in class org.springframework.context.event.SimpleApplicationEventMulticaster
public void setTaskExecutor(Executor taskExecutor)
setTaskExecutor
in class org.springframework.context.event.SimpleApplicationEventMulticaster
Copyright © 2019. All rights reserved.