Class EventsAutoConfiguration


  • @Configuration
    public class EventsAutoConfiguration
    extends java.lang.Object
    Configuration related to Eventing within the Genie application.
    Since:
    3.1.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventsAutoConfiguration

        public EventsAutoConfiguration()
    • Method Detail

      • applicationEventMulticaster

        @Bean
        @ConditionalOnMissingBean(GenieEventBus.class)
        public GenieEventBusImpl applicationEventMulticaster​(@Qualifier("genieSyncTaskExecutor")
                                                             org.springframework.core.task.SyncTaskExecutor syncTaskExecutor,
                                                             @Qualifier("genieAsyncTaskExecutor")
                                                             org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor)
        A multicast event publisher to replace the default one used by Spring via the ApplicationContext.
        Parameters:
        syncTaskExecutor - The synchronous task executor to use
        asyncTaskExecutor - The asynchronous task executor to use
        Returns:
        The application event multicaster to use