BoundedContext

annotation class BoundedContext(val name: String, val description: String = "")

The bounded context a domain module belongs to. The runtime binds the context when it assembles the Manifest fragments, so a module rarely carries it; when it does, its name and description go into the Manifest.

Parameters

name

the context's name, unique within the service: lower-case letters, digits and hyphens, starting with a letter ([a-z][a-z0-9-]*), such as eshop-catalog. A dot is never part of it, since it separates the context from the aggregate in type names (context.aggregate.Command); the compiler refuses such a name. Write it as a literal: a constant of another module may have no value yet when the compiler reads it, and the compilation then fails.

description

what the context is for, for documentation.

Properties

Link copied to clipboard
Link copied to clipboard