Carlos thanks, I saw that, but it was still not very clear to me. I'm still trying to wrap my head on the bootstraping of both frameworks. At first I thought on making a main class of kodein to actually start the embedded server, but I could not figure out how to inject that dependencies on modules started by ktor. The other way around it would be having ktor start the modules, and one of them being the DI module, but not sure how other modules would benefit from constructor injection. I'm sorry, but I'm new to both frameworks, I have been a long time spring user (and committer )
07/20/2018, 4:20 PM
Ok. Since this seems to be recurrent, and nobody proposed a sample yet, I’m going to prepare one myself
Did a sample application showing how to use kodein with pure extension functions and how to test it,
and did another example showing how to do something similar to “M(VC)” with classes and stuff.
Though how to use it is totally up to you, since ktor doesn’t impose a way for doing things