Class SpringModulithRuntimeAutoConfiguration
java.lang.Object
org.springframework.modulith.runtime.autoconfigure.SpringModulithRuntimeAutoConfiguration
Auto-configuration to register a
SpringBootApplicationRuntime
, a ApplicationModulesRuntime
and an
ApplicationListener
to invoke all ApplicationModuleInitializer
s as Spring Bean.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Auto-configuration to react to ArchUnit missing on the runtime classpath. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static ApplicationListener<ApplicationStartedEvent>
applicationModuleInitializingListener
(ListableBeanFactory beanFactory) (package private) static ApplicationModulesRuntime
modulesRuntime
(ApplicationRuntime runtime) (package private) static SpringBootApplicationRuntime
-
Constructor Details
-
SpringModulithRuntimeAutoConfiguration
SpringModulithRuntimeAutoConfiguration()
-
-
Method Details
-
modulithsApplicationRuntime
@Bean @Role(2) @ConditionalOnMissingBean(ApplicationRuntime.class) static SpringBootApplicationRuntime modulithsApplicationRuntime(ApplicationContext context) -
modulesRuntime
@Bean @Role(2) @ConditionalOnMissingBean static ApplicationModulesRuntime modulesRuntime(ApplicationRuntime runtime) -
applicationModuleInitializingListener
@Bean @Role(2) static ApplicationListener<ApplicationStartedEvent> applicationModuleInitializingListener(ListableBeanFactory beanFactory)
-