BoundedContext

data class BoundedContext(val alias: String? = null, val description: String = "", val scopes: Set<String> = linkedSetOf(), val aggregates: Map<String, Aggregate> = emptyMap()) : NamingScopes, Merge<BoundedContext> , DescriptionCapable

Configuration for a bounded context, containing aggregates and their metadata. A bounded context represents a logical boundary within the domain model.

Parameters

alias

Optional alias for the bounded context (must be unique across all contexts).

description

Human-readable description of the bounded context.

scopes

Set of package scopes that belong to this bounded context.

aggregates

Map of aggregate names to their configurations.

Constructors

Link copied to clipboard
constructor(alias: String? = null, description: String = "", scopes: Set<String> = linkedSetOf(), aggregates: Map<String, Aggregate> = emptyMap())

Properties

Link copied to clipboard

aggregateName ->Aggregate

Link copied to clipboard
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val scopes: Set<String>

Functions

Link copied to clipboard
open override fun merge(other: BoundedContext): BoundedContext

Merges this BoundedContext with another, combining scopes, aggregates, and resolving conflicts.