DIContext

interface DIContext<C : Any>

Defines a context and its type to be used by Di

Types

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

Defines a context and its type to be used by DI

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

Defines a context and its type to be used by DI

Properties

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

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

value
Link copied to clipboard
abstract val value: C

The context itself.

Inheritors

Value
Link copied to clipboard
Lazy
Link copied to clipboard
ErasedContext
Link copied to clipboard