DefaultScope
Properties
Functions
Link copied to clipboard
Resolves and returns a dependency instance that matches the given qualifier. If the instance is a singleton and already created, it returns the cached instance. If it's a factory, a new instance is created on each call. If the instance is not found in the current scope, it will search in the parent scope.
Link copied to clipboard
inline fun <T : Any> DefaultScope.get(qualifier: Qualifier = TypeQualifier(T::class), noinline pathBuilder: ScopePathBuilder.() -> Path = { Path() }): Any
Link copied to clipboard
Retrieves a direct child scope identified by the given qualifier.
Link copied to clipboard
Registers one or more DependencyModules into the scope. This populates the scope with the necessary factories to create dependency instances.
Link copied to clipboard
Navigates through the scope hierarchy and returns a descendant scope specified by the path. The path is resolved from the current scope downwards.
Link copied to clipboard