get

abstract fun get(qualifier: Qualifier): Any

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.

Return

The resolved dependency instance.

Parameters

qualifier

The unique identifier for the dependency to resolve.

Throws

if the dependency cannot be found or if a circular dependency is detected.