SimpleNamedAggregateGetter

class SimpleNamedAggregateGetter<T>(contextName: String?, aggregateNameGetter: PropertyGetter<T, String>) : NamedAggregateGetter<T>

A named aggregate getter that extracts the aggregate name from a property of the target object.

This implementation uses a property getter to extract the aggregate name from the target, then constructs a named aggregate using an optional context name.

Parameters

T

The type of the target object.

Constructors

Link copied to clipboard
constructor(contextName: String?, aggregateNameGetter: PropertyGetter<T, String>)

Functions

Link copied to clipboard
open override fun getNamedAggregate(target: T): NamedAggregate

Retrieves the named aggregate by extracting the aggregate name from the target and constructing a named aggregate.