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