@Configuration
public class EventConfig
extends java.lang.Object
Constructor and Description |
---|
EventConfig() |
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 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