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.