CommandAggregateMetadata
Represents the metadata for a command aggregate, containing all information needed to process commands.
This data class holds the configuration and function registries for a command aggregate, including constructor accessors, command handlers, error handlers, and after-command functions. It provides utilities to convert these into executable message functions.
Parameters
The type of the command aggregate.
Constructors
Creates a new CommandAggregateMetadata with the specified properties.
Properties
List of after-command function metadata.
The class of the command aggregate.
Map of command types to their function metadata for command handling.
The accessor for creating command aggregate instances.
Map of error types to their function metadata for error handling.
Set of command types that are mounted on this aggregate.
The named aggregate that this command aggregate belongs to.
The name of this processor, used for identification in processing contexts.
The list of all registered commands for this aggregate, including both function-registered and mounted commands.
Indicates whether delete aggregate functionality is registered for this command aggregate.
Indicates whether recover aggregate functionality is registered for this command aggregate.
Functions
Creates an AggregateId for this NamedAggregate with the specified parameters.
Finds the aggregate type class associated with this named aggregate.
Converts this NamedAggregate to its corresponding AggregateMetadata.
Generates a unique ID string for this NamedAggregate.
Gets the context alias prefix for this bounded context.
Checks if the named aggregate is available locally at runtime.
Materializes this NamedAggregate into a MaterializedNamedAggregate.
Finds the aggregate type class associated with this named aggregate, throwing an exception if not found.
Converts the error function registry into executable message functions.
Extension function to convert a NamedAggregate to an EventNamedAggregate.
Converts this NamedAggregate to its string representation.
Converts this NamedAggregate to a string representation using the context alias.