All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.assembly.RaptorDomainMongoPlugin.kt Maven / Gradle / Ivy

There is a newer version: 0.27.0
Show newest version
package io.fluidsonic.raptor.domain.mongo

import io.fluidsonic.raptor.*
import io.fluidsonic.raptor.bson.*
import io.fluidsonic.raptor.domain.*
import io.fluidsonic.raptor.mongo.*


public object RaptorDomainMongoPlugin : RaptorPlugin {

	override fun RaptorPluginCompletionScope.complete() {
		val domainConfiguration = require(RaptorDomainPlugin)

		configure(RaptorBsonPlugin) {
			bson.definitions(
				RaptorAggregateEventBson.bson(definitions = domainConfiguration.aggregateDefinitions),
				RaptorAggregateEventBson.idBson(),
			)
		}
	}


	override fun RaptorPluginInstallationScope.install() {
		require(RaptorDomainPlugin)
		require(RaptorMongoPlugin)
	}


	override fun toString(): String = "domain-mongo"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy