DITree

interface DITree

Tree where the bindings and their factories are sorted & stored.

Functions

Link copied to clipboard
abstract fun find(search: SearchSpecs): List<Triple<DI.Key<*, *, *>, List<DIDefinition<*, *, *>>, ContextTranslator<*, *>?>>

Finds all keys and definitions that match the given specs.

abstract fun <C : Any, A, T : Any> find(    key: DI.Key<C, A, T>,     overrideLevel: Int = 0,     all: Boolean = false): List<Triple<DI.Key<Any, A, T>, DIDefinition<Any, A, T>, ContextTranslator<C, Any>?>>

Finds all keys and definitions that match the given key.

Link copied to clipboard
abstract operator fun <C : Any, A, T : Any> get(key: DI.Key<C, A, T>): Triple<DI.Key<Any, A, T>, List<DIDefinition<Any, A, T>>, ContextTranslator<C, Any>?>?

Gets a List of definition for an exact key representing a binding and all its overrides.

Properties

Link copied to clipboard
abstract val bindings: BindingsMap

An immutable view of the bindings map. For inspection & debug.

Link copied to clipboard
abstract val externalSources: List<ExternalSource>

The external sources that will be queried if no bindings are found for a given request.

Link copied to clipboard
abstract val registeredTranslators: List<ContextTranslator<*, *>>

Extensions

Link copied to clipboard
fun DITree.findAllBindings(f: FindDSL.() -> Unit): List<Triple<DI.Key<*, *, *>, List<DIDefinition<*, *, *>>, ContextTranslator<*, *>?>>

Used to find bindings that match a particular SearchSpecs.