Kazik
09/17/2025, 1:17 PM@InjectedParam be passed to another dependency which expect it with koin-annotations? For example I have following classes
@Factory
class TestSampleClass(
@InjectedParam val name: String,
val sample: AnotherSample
) {
fun hello(): String {
return "Hello $name!"
}
fun hello2(): String {
return sample.hello()
}
}
@Factory
class AnotherSample(@InjectedParam val name: String) {
fun hello(): String {
return "Another $name!!!"
}
}
When I injected for example like this it is possible to also AnotherSample class instantiated with that parameter?
private val testSampleClass: TestSampleClass by inject { parametersOf("woooo!") }Kazik
09/18/2025, 7:31 AMProvided annotation which can be used instead InjectedParamarnaud.giuliani
09/19/2025, 12:45 PM