Is `@InjectedParam` be passed to another dependenc...
# koin
k
Is
@InjectedParam
be passed to another dependency which expect it with koin-annotations? For example I have following classes
Copy code
@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?
Copy code
private val testSampleClass: TestSampleClass by inject { parametersOf("woooo!") }
1
To response myself it looks like the koin have
Provided
annotation which can be used instead
InjectedParam
a
InjectedParam is for usage with parametersOf. Else Provided for any time dynamically provided (via DSL, or on teh fly ....)