ContextSelection

data class ContextSelection(val include: Set<String> = emptySet(), val exclude: Set<String> = emptySet())

The bounded contexts a node serves: wow.contexts.include and wow.contexts.exclude (ContextsProperties) over the domain modules on the class path, their binding indexes (ModelProvider).

  • Neither set: every context on the class path, as before.

  • include set: only those contexts; then exclude removes contexts from what is left.

  • Each name must be a context of a module on the class path, and none both included and excluded; a selection that leaves no context is refused too. The node then fails to start, naming the contexts on the class path.

The node is built for the selected contexts only: their models, their Manifest fragments (so the service's Manifest, its routes and its contract name them alone), and the handlers of their processors. A context left out is to the node as any other service's, reached through its peers.

Constructors

Link copied to clipboard
constructor(include: Set<String> = emptySet(), exclude: Set<String> = emptySet())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the selection serves every context on the class path.

Functions

Link copied to clipboard

The providers of providers whose context is selected; fails on a selection that names an unknown context.