Class SpringModulithRuntimeAutoConfiguration
java.lang.Object
org.springframework.modulith.runtime.autoconfigure.SpringModulithRuntimeAutoConfiguration
Auto-configuration to register a
SpringBootApplicationRuntime
and ApplicationModulesRuntime
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) ApplicationListener<ApplicationStartedEvent>
applicationModuleInitialzingListener
(ApplicationModulesRuntime runtime, List<ApplicationModuleInitializer> initializers) (package private) ApplicationModulesRuntime
modulesRuntime
(ApplicationRuntime runtime) (package private) SpringBootApplicationRuntime
-
Constructor Details
-
SpringModulithRuntimeAutoConfiguration
SpringModulithRuntimeAutoConfiguration()
-
-
Method Details
-
modulithsApplicationRuntime
@Bean @Role(2) @ConditionalOnMissingBean(ApplicationRuntime.class) SpringBootApplicationRuntime modulithsApplicationRuntime(ApplicationContext context) -
modulesRuntime
@Bean @Role(2) @ConditionalOnMissingBean ApplicationModulesRuntime modulesRuntime(ApplicationRuntime runtime) -
applicationModuleInitialzingListener
@Bean ApplicationListener<ApplicationStartedEvent> applicationModuleInitialzingListener(ApplicationModulesRuntime runtime, List<ApplicationModuleInitializer> initializers)
-