Rohde Fischer
02/01/2021, 7:36 AMFooRoute
and want to make use of the FooService
interface, what is a reasonable way to do that? Currently I'm around:
class FooRoute @Inject constructor(application: Application, foo: FooService) {
init {
// do "magic" here
}
}
but I also want to structure my code in nicely designed methods etc. so there's a clear structure to it and all thatBig Chungus
02/01/2021, 7:48 AMRohde Fischer
02/01/2021, 7:58 AMBig Chungus
02/01/2021, 8:00 AMRohde Fischer
02/01/2021, 8:12 AM@Inject
annotations etc. One thing I like with them though is that they are a standard, so at least in principle, I should be able to replace e.g. Guice with Spring, should it turn out that Guice is a bad choice. I guess the Kodein approach will be less interchangable?Big Chungus
02/01/2021, 8:13 AMRohde Fischer
02/01/2021, 8:31 AMJorge R
02/01/2021, 10:40 AMBig Chungus
02/01/2021, 10:52 AMJorge R
02/01/2021, 10:56 AMRohde Fischer
02/01/2021, 12:20 PMBig Chungus
02/01/2021, 1:35 PMRohde Fischer
02/02/2021, 2:51 PM