@ Bean ( name = AbstractApplicationContext . APPLICATION_EVENT_MULTICASTER_BEAN_NAME ) ApplicationEventMulticaster applicationEventMulticaster ( @ Qualifier ( "asyncExecutor" ) final Executor executor , final TenantAware tenantAware ) { final SimpleApplicationEventMulticaster simpleApplicationEventMulticaster = new TenantAwareApplicationEventPublisher ( tenantAware , applicationEventFilter ( ) ) ; simpleApplicationEventMulticaster . setTaskExecutor ( executor ) ; return simpleApplicationEventMulticaster ; }
Server internal event publisher that allows parallel event processing if the event listener is marked as so .