This PR fixes some problems related to the module initialization lifecycle. These changes were necessary for the upcoming refactoring of the Space.eventSourcing.Snapshotter singleton which configures itself.
onInitialize is now called after the complete configuration has been merged and mapped.
Singletons are now created right before the afterInitialization hook of each module
The initialization hooks also use the _state property to flag the process
This PR fixes some problems related to the module initialization lifecycle. These changes were necessary for the upcoming refactoring of the
Space.eventSourcing.Snapshotter
singleton which configures itself.onInitialize
is now called after the complete configuration has been merged and mapped.afterInitialization
hook of each module_state
property to flag the process