NamedAggregateDecorator

Decorator interface for named aggregates following the decorator pattern. It inherits from NamedAggregate and delegates to the actual named aggregate implementation. This interface allows adding functionality dynamically without modifying the original aggregate logic.

Inheritors

Properties

Link copied to clipboard
open override val aggregateName: String

The name of the aggregate.

Link copied to clipboard
open override val contextName: String

The name of the bounded context this entity belongs to.

Link copied to clipboard

The decorated named aggregate.

Functions

Link copied to clipboard

Checks if two aggregates belong to the same context and have the same aggregate name.

Link copied to clipboard

Checks if this entity belongs to the same bounded context as another entity.