DITree

interface DITree

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

Functions

find
Link copied to clipboard
common
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.
get
Link copied to clipboard
common
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

bindings
Link copied to clipboard
common
abstract val bindings: BindingsMap
An immutable view of the bindings map.
externalSources
Link copied to clipboard
common
abstract val externalSources: List<ExternalSource>
The external sources that will be queried if no bindings are found for a given request.
registeredTranslators
Link copied to clipboard
common
abstract val registeredTranslators: List<ContextTranslator<*, *>>

Extensions

findAllBindings
Link copied to clipboard
common
fun DITree.findAllBindings(f: FindDSL.() -> Unit): List<Triple<DI.Key<*, *, *>, List<DIDefinition<*, *, *>>, ContextTranslator<*, *>?>>
Used to find bindings that match a particular SearchSpecs.