MongoEventSourcingAutoConfiguration

@AutoConfiguration(after = [WowAutoConfiguration::class, MongoReactiveAutoConfiguration::class])
@ConditionalOnClass(value = [MongoEventStore::class])
class MongoEventSourcingAutoConfiguration @Autowired constructor(mongoProperties: MongoProperties, eventStoreBatchProperties: MongoEventStoreBatchProperties, snapshotStoreBatchProperties: MongoSnapshotStoreBatchProperties)

Constructors

Link copied to clipboard
@Autowired
constructor(mongoProperties: MongoProperties, eventStoreBatchProperties: MongoEventStoreBatchProperties, snapshotStoreBatchProperties: MongoSnapshotStoreBatchProperties)
constructor(mongoProperties: MongoProperties)
constructor(mongoProperties: MongoProperties, eventStoreBatchProperties: MongoEventStoreBatchProperties)

Functions

Link copied to clipboard
fun mongoEventStore(mongoClient: MongoClient, dataMongoProperties: MongoProperties?, @Qualifier(value = "wow.CurrentBoundedContext") currentBoundedContext: NamedBoundedContext): MongoEventStore
Link copied to clipboard
fun mongoEventStoreBinding(@Qualifier(value = "mongoEventStore") eventStore: EventStore): EventStoreBinding
Link copied to clipboard
fun mongoEventStreamQueryServiceFactory(mongoClient: MongoClient, dataMongoProperties: MongoProperties?, @Qualifier(value = "wow.CurrentBoundedContext") currentBoundedContext: NamedBoundedContext): MongoEventStreamQueryServiceFactory
Link copied to clipboard
@Bean
@ConditionalOnBean(value = [MongoClient::class])
@ConditionalOnProperty(value = ["wow.prepare.storage"], matchIfMissing = true, havingValue = "mongo")
@ConditionalOnMissingBean
fun mongoPrepareKeyFactory(mongoClient: MongoClient, dataMongoProperties: MongoProperties?, @Qualifier(value = "wow.CurrentBoundedContext") currentBoundedContext: NamedBoundedContext): PrepareKeyFactory
Link copied to clipboard
fun mongoSnapshotQueryServiceFactory(mongoClient: MongoClient, dataMongoProperties: MongoProperties?, @Qualifier(value = "wow.CurrentBoundedContext") currentBoundedContext: NamedBoundedContext): MongoSnapshotQueryServiceFactory
Link copied to clipboard
@Bean(name = ["mongoSnapshotStore", "mongoSnapshotRepository"])
fun mongoSnapshotStore(mongoClient: MongoClient, dataMongoProperties: MongoProperties?, @Qualifier(value = "wow.CurrentBoundedContext") currentBoundedContext: NamedBoundedContext): MongoSnapshotStore
Link copied to clipboard
fun mongoSnapshotStoreBinding(@Qualifier(value = "mongoSnapshotStore") snapshotStore: SnapshotStore): SnapshotStoreBinding