Lifecycle

object Lifecycle

The lifecycle of every aggregate: system commands the kernel decides for any aggregate model without user code, and the system events they produce. They change the aggregate's metadata, not its state: the deleted mark and the scope (the owner and the space change only through them).

Their names sit in the system namespace NAMESPACE, so a model that gives one of its own types such a name fails to build instead of colliding.

Properties

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

The lifecycle commands, by their names.

Link copied to clipboard
Link copied to clipboard

The lifecycle events, by their names.

Link copied to clipboard
const val NAMESPACE: String

The namespace of the lifecycle commands' and events' names.

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

Functions

Link copied to clipboard
fun nameOf(type: Class<*>): String?

The system name of type, a lifecycle command or event, or null when it is neither.