WowMetadata

data class WowMetadata(val contexts: Map<String, BoundedContext> = emptyMap()) : Merge<WowMetadata>

Root metadata class containing all bounded context configurations. WowMetadata represents the complete configuration for all bounded contexts and their aggregates.

Parameters

contexts

Map of context names to their bounded context configurations.

Constructors

Link copied to clipboard
constructor(contexts: Map<String, BoundedContext> = emptyMap())

Properties

Link copied to clipboard

Map of context names to their bounded context configurations.

Functions

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

Merges this WowMetadata with another, combining contexts and resolving conflicts.

Link copied to clipboard

Converts WowMetadata to a NamedAggregateTypeSearcher. Creates the reverse mapping from named aggregates to their types using the type searcher.

Link copied to clipboard

Converts WowMetadata to a ScopeContextSearcher. Builds a mapping from package scopes to named bounded contexts.

Link copied to clipboard

Converts WowMetadata to a ScopeNamedAggregateSearcher. Builds a mapping from package scopes to named aggregates based on aggregate scopes, commands, and events.

Link copied to clipboard

Converts WowMetadata to a TypeNamedAggregateSearcher. Scans all contexts and aggregates in the metadata to build a mapping from aggregate classes to named aggregates. Skips aggregates whose types cannot be found at runtime.