Class MomentsAutoConfiguration
java.lang.Object
org.springframework.modulith.moments.autoconfigure.MomentsAutoConfiguration
@EnableScheduling
@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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Moments
moments
(ObjectProvider<Clock> clockProvider, ApplicationEventPublisher events, MomentsProperties properties) (package private) TimeMachine
timeMachine
(ObjectProvider<Clock> clockProvider, ApplicationEventPublisher events, MomentsProperties properties)
-
Constructor Details
-
MomentsAutoConfiguration
MomentsAutoConfiguration()
-
-
Method Details
-
moments
@Bean @ConditionalOnProperty(name="spring.modulith.moments.enable-time-machine", havingValue="false", matchIfMissing=true) Moments moments(ObjectProvider<Clock> clockProvider, ApplicationEventPublisher events, MomentsProperties properties) -
timeMachine
@Bean @ConditionalOnProperty(name="spring.modulith.moments.enable-time-machine", havingValue="true", matchIfMissing=false) TimeMachine timeMachine(ObjectProvider<Clock> clockProvider, ApplicationEventPublisher events, MomentsProperties properties)
-