DependencyTrackingInjectionEnvironment

Fake environment that tracks dependencies on the instantiation of components.

Environment of this kind should rarely be created manually: they are used behind the scenes in rules that check for the coherence of the contents of an environment (completeness check, cyclic dependency check...)

This environment performs dependency analysis on:

  • Components

  • Injection resolution

Constructors

Types

Functions

Link copied to clipboard
open override fun <T : Any> createInjector(identifier: Identifier<T>, onInjection: (T) -> Unit): Injector<T>
Link copied to clipboard
open fun <T : Any> get(identifier: Identifier<T>): T
Link copied to clipboard
open override fun getAllIdentifiers(): Sequence<Identifier<*>>
Link copied to clipboard
open override fun <T : Any> getOrNull(identifier: Identifier<T>): T?

Properties

Link copied to clipboard

The dependencies represented as a map from an identifier to the identifiers this identifier depends on.