Class EventPublicationAutoConfiguration
java.lang.Object
org.springframework.modulith.events.config.EventPublicationConfiguration
org.springframework.modulith.events.config.EventPublicationAutoConfiguration
@AutoConfiguration
@Import(AsyncEnablingConfiguration.class)
public class EventPublicationAutoConfiguration
extends EventPublicationConfiguration
Fundamental configuration for the
EventPublicationRegistry
support.- Author:
- Oliver Drotbohm, Björn Kieling, Dmitry Belyaev
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static PersistentApplicationEventMulticaster
applicationEventMulticaster
(ObjectFactory<EventPublicationRegistry> eventPublicationRegistry, ObjectFactory<Environment> environment) (package private) static EventPublicationAutoConfiguration.AsyncPropertiesDefaulter
asyncPropertiesDefaulter
(Environment environment) (package private) static CompletionRegisteringAdvisor
(package private) DefaultEventPublicationRegistry
eventPublicationRegistry
(EventPublicationRepository repository, ObjectProvider<Clock> clock)
-
Constructor Details
-
EventPublicationAutoConfiguration
public EventPublicationAutoConfiguration()
-
-
Method Details
-
eventPublicationRegistry
@Bean @Role(2) @ConditionalOnBean(EventPublicationRepository.class) DefaultEventPublicationRegistry eventPublicationRegistry(EventPublicationRepository repository, ObjectProvider<Clock> clock) - Overrides:
eventPublicationRegistry
in classEventPublicationConfiguration
-
applicationEventMulticaster
@Bean @Role(2) @ConditionalOnBean(EventPublicationRegistry.class) static PersistentApplicationEventMulticaster applicationEventMulticaster(ObjectFactory<EventPublicationRegistry> eventPublicationRegistry, ObjectFactory<Environment> environment) -
completionRegisteringAdvisor
@Bean @Role(2) @ConditionalOnBean(EventPublicationRegistry.class) static CompletionRegisteringAdvisor completionRegisteringAdvisor(ObjectFactory<EventPublicationRegistry> registry) -
asyncPropertiesDefaulter
@Bean @Role(2) @ConditionalOnProperty(name="spring.modulith.default-async-termination", havingValue="true", matchIfMissing=true) static EventPublicationAutoConfiguration.AsyncPropertiesDefaulter asyncPropertiesDefaulter(Environment environment)
-