StateAggregateMetadata
data class StateAggregateMetadata<S : Any>(val aggregateType: Class<S>, val constructorAccessor: ConstructorAccessor<S>, val aggregateIdAccessor: PropertyGetter<S, String>, val sourcingFunctionRegistry: Map<Class<*>, FunctionAccessorMetadata<S, Void>>) : TypedAggregate<S> , Metadata
Constructors
Link copied to clipboard
constructor(aggregateType: Class<S>, constructorAccessor: ConstructorAccessor<S>, aggregateIdAccessor: PropertyGetter<S, String>, sourcingFunctionRegistry: Map<Class<*>, FunctionAccessorMetadata<S, Void>>)
Properties
Functions
Link copied to clipboard
fun toMessageFunctionRegistry(stateRoot: S): Map<Class<*>, MessageFunction<S, DomainEventExchange<*>, Void>>
Link copied to clipboard
fun <S : Any> StateAggregateMetadata<S>.toStateAggregate(aggregateId: AggregateId, state: S, version: Int, eventId: String = "", firstOperator: String = "", operator: String = "", firstEventTime: Long = 0, eventTime: Long = 0, deleted: Boolean = false): StateAggregate<S>