Hello, does koin support feature similar to dagger/hilt like injecting all classes of the same interface. I try to achieve this using koin-annotations, but ksp fails to provide set of dependencies with error about missing definition for property. What I am missing here?
Copy code
interface RequestParser
@Single
class AImpl : RequestParser
@Single
class BImpl : RequestParser
@Single
class Repository(private val parsers: Set<RequestParser>)
👀 2
k
Kibet Theophilus
07/01/2025, 11:45 AM
let me try..
Kibet Theophilus
07/01/2025, 12:26 PM
@Kazik share the same approach in dagger/hilt
k
Kazik
07/01/2025, 12:35 PM
Right now, I don't have any code snippet, but I remember that in hilt I can annotate dependencies with something like
@IntoSet
and then just inject set of all implementations for specific interface type.