DIContext

interface DIContext<C : Any>

Defines a context and its type to be used by Di

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Lazy<C : Any>(val type: TypeToken<in C>, val getValue: () -> C) : DIContext<C>

Defines a context and its type to be used by DI

Link copied to clipboard
data class Value<C : Any>(val type: TypeToken<in C>, val value: C) : DIContext<C>

Defines a context and its type to be used by DI

Properties

Link copied to clipboard
abstract val type: TypeToken<in C>

The type of the context, used to lookup corresponding bindings.

Link copied to clipboard
abstract val value: C

The context itself.