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, setErrorHandleraddApplicationListener, addApplicationListenerBean, getApplicationListeners, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, removeApplicationListenerBeans, removeApplicationListeners, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEventpublic 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.ApplicationEventMulticastermulticastEvent in class org.springframework.context.event.SimpleApplicationEventMulticasterpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic Executor getTaskExecutor()
getTaskExecutor in class org.springframework.context.event.SimpleApplicationEventMulticasterpublic void setTaskExecutor(Executor taskExecutor)
setTaskExecutor in class org.springframework.context.event.SimpleApplicationEventMulticasterCopyright © 2022. All rights reserved.