@Configuration
public class EventsAutoConfiguration
extends java.lang.Object
Constructor and Description |
---|
EventsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
GenieEventBusImpl |
applicationEventMulticaster(org.springframework.core.task.SyncTaskExecutor syncTaskExecutor,
org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor)
A multicast event publisher to replace the default one used by Spring via the ApplicationContext.
|
@Bean @ConditionalOnMissingBean(value=GenieEventBus.class) public GenieEventBusImpl applicationEventMulticaster(@Qualifier(value="genieSyncTaskExecutor") org.springframework.core.task.SyncTaskExecutor syncTaskExecutor, @Qualifier(value="genieAsyncTaskExecutor") org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor)
syncTaskExecutor
- The synchronous task executor to useasyncTaskExecutor
- The asynchronous task executor to use