Package-level declarations

Types

Link copied to clipboard
class AnnotationQualifier(val annotation: KClass<out Annotation>) : Qualifier

A Qualifier that uses an Annotation class as a unique identifier. This allows for creating custom, type-safe qualifiers for dependency injection.

Link copied to clipboard
class ComplexQualifier(val qualifier: Qualifier, val name: Any) : Qualifier

A Qualifier that combines another Qualifier and a name object to create a more specific, composite identifier. This is particularly useful for creating nested scopes or for qualifying dependencies within a specific context, It goes great with the Android Lifecycle. like associating a scope with a specific Activity AND a scope key (e.g., ActivityScope).

Link copied to clipboard
Link copied to clipboard
data class NamedQualifier(val name: String) : Qualifier

A Qualifier that uses a String name as a unique identifier. This is useful for distinguishing between different instances of the same type.

Link copied to clipboard
interface Qualifier

A marker interface used to uniquely identify dependencies within the dependency injection container.

Link copied to clipboard
Link copied to clipboard
class TypeQualifier(val type: KClass<*>) : Qualifier

A Qualifier that uses a KClass as a unique identifier. This is the most common type of qualifier, used to register and retrieve dependencies based on their class type.

Functions

Link copied to clipboard

A DSL-style function to create an AnnotationQualifier for a given annotation type T. This provides a more concise and readable way to specify annotation-based qualifiers.

Link copied to clipboard

A DSL-style function to create a NamedQualifier with the given name. This is a convenient way to create string-based qualifiers.