Class MomentsAutoConfiguration
java.lang.Object
org.moduliths.moments.autoconfigure.MomentsAutoConfiguration
@EnableScheduling
@EnableConfigurationProperties(MomentsProperties.class)
@ConditionalOnProperty(name="moduliths.moments.enabled",
havingValue="true",
matchIfMissing=true)
@Configuration(proxyBeanMethods=false)
class MomentsAutoConfiguration
extends Object
Auto-configuration for
Moments.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Momentsmoments(org.springframework.beans.factory.ObjectProvider<Clock> clockProvider, org.springframework.context.ApplicationEventPublisher events, MomentsProperties properties) (package private) TimeMachinetimeMachine(org.springframework.beans.factory.ObjectProvider<Clock> clockProvider, org.springframework.context.ApplicationEventPublisher events, MomentsProperties properties)
-
Constructor Details
-
MomentsAutoConfiguration
MomentsAutoConfiguration()
-
-
Method Details
-
moments
@Bean @ConditionalOnProperty(name="moduliths.moments.enable-time-machine", havingValue="false", matchIfMissing=true) Moments moments(org.springframework.beans.factory.ObjectProvider<Clock> clockProvider, org.springframework.context.ApplicationEventPublisher events, MomentsProperties properties) -
timeMachine
@Bean @ConditionalOnProperty(name="moduliths.moments.enable-time-machine", havingValue="true", matchIfMissing=false) TimeMachine timeMachine(org.springframework.beans.factory.ObjectProvider<Clock> clockProvider, org.springframework.context.ApplicationEventPublisher events, MomentsProperties properties)
-