AnnotationQualifier
A Qualifier that uses an Annotation class as a unique identifier. This allows for creating custom, type-safe qualifiers for dependency injection.
Example usage:
// 1. Define a custom annotation
annotation class ApiService
// 2. Register a dependency with the annotation qualifier
single(annotated<ApiService>()) { Retrofit.create(MyApi::class.java) }
// 3. Inject the dependency
val myApi: MyApi by scope.inject(annotated<ApiService>())Content copied to clipboard
Properties
Link copied to clipboard
The KClass of the annotation used for identification.