EventMetadata

data class EventMetadata<E>(val eventType: Class<E>, val namedAggregateGetter: NamedAggregateGetter<E>?, val name: String, val revision: String, val aggregateIdGetter: PropertyGetter<E, String>? = null) : Named, Metadata

Metadata container for domain event classes.

This data class holds metadata extracted from domain event classes, including event names, revisions, aggregate information, and property getters for accessing aggregate-related data.

Parameters

E

The event type

See also

Constructors

Link copied to clipboard
constructor(eventType: Class<E>, namedAggregateGetter: NamedAggregateGetter<E>?, name: String, revision: String, aggregateIdGetter: PropertyGetter<E, String>? = null)

Creates a new EventMetadata instance

Properties

Link copied to clipboard

Optional getter for extracting aggregate ID from the event

Link copied to clipboard

The class of the event

Link copied to clipboard
open override val name: String

The name of the event

Link copied to clipboard

Optional getter for extracting named aggregate information

Link copied to clipboard

The revision/version of the event schema

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String