hi, is it possible to inject param during annotati...
# koin
d
hi, is it possible to inject param during annotation constructor injection? here is the example:
Copy code
@Module
class MyModule {
    @Factory
    fun provideLogger(@InjectedParam tag: String) = Logger(tag)
}

@Single 
class SomeClass(
    private val logger: Logger // how to specify tag here on injection point?
)
c
Copy code
@Single
class SomeClass(
    @InjectedParam private val tag: String,
    private val logger: Logger = get(Logger::class.java) {
        parametersOf(tag)
    },
)
Also https://github.com/InsertKoinIO/koin-annotations/issues/124
d
It works, thank you!
alphabet yellow n 1
alphabet white p 1