Class MomentsAutoConfiguration
java.lang.Object
org.springframework.modulith.moments.autoconfigure.MomentsAutoConfiguration
@EnableConfigurationProperties(MomentsProperties.class)
@ConditionalOnProperty(name="spring.modulith.moments.enabled",
havingValue="true",
matchIfMissing=true)
@Configuration(proxyBeanMethods=false)
class MomentsAutoConfiguration
extends Object
Auto-configuration for
Moments.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classConfiguration for the plain, scheduledMoments. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) TimeMachinetimeMachine(ObjectProvider<Clock> clockProvider, ApplicationEventPublisher events, MomentsProperties properties)
-
Constructor Details
-
MomentsAutoConfiguration
MomentsAutoConfiguration()
-
-
Method Details
-
timeMachine
@Bean @ConditionalOnProperty(name="spring.modulith.moments.enable-time-machine", havingValue="true", matchIfMissing=false) TimeMachine timeMachine(ObjectProvider<Clock> clockProvider, ApplicationEventPublisher events, MomentsProperties properties)
-