toMessageFunctionRegistry

Converts the sourcing function registry into executable message functions.

This method creates a map of event types to their corresponding message functions for event sourcing.

Return

A map of event classes to their message functions.

Parameters

stateRoot

The state aggregate instance to bind functions to.