apatrida
06/30/2016, 12:00 PMfun myScope(): Pair<Context, HashMap<Any, Any>> { /*...*/ }
val kodein = Kodein {
bind<Logger>() with autoScopedSingleton(::myScope) { LogManager.getNamedLogger(it.name) } // `it` is the context.
}
then
val logger: Logger = kodein.instance()
how does the kodein.instance()
know the scope to use?