Lazy

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

Constructors

Link copied to clipboard
constructor(type: TypeToken<in C>, getValue: () -> C)

Properties

Link copied to clipboard
val getValue: () -> C
Link copied to clipboard
open override val type: TypeToken<in C>

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

Link copied to clipboard
open override val value: C

The context itself.