Projection was now built on listener events

Create ProjectionBus and use it with listeners
add EventStream::getByVersion
This commit is contained in:
2025-04-14 23:39:56 +02:00
parent 908cc888ad
commit 8c1eabb9f5
22 changed files with 126 additions and 89 deletions
@@ -3,7 +3,7 @@ package eventDemo.configuration.injection
import eventDemo.business.command.GameCommandActionRunner
import eventDemo.business.command.GameCommandHandler
import eventDemo.business.event.GameEventHandler
import eventDemo.business.event.eventListener.PlayerNotificationEventListener
import eventDemo.business.event.projection.projectionListener.PlayerNotificationListener
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
@@ -13,5 +13,5 @@ fun Module.configureDIBusiness() {
}
singleOf(::GameEventHandler)
singleOf(::GameCommandActionRunner)
singleOf(::PlayerNotificationEventListener)
singleOf(::PlayerNotificationListener)
}