ktp / toothpick.ktp.delegate / LazyDelegate

LazyDelegate

class LazyDelegate<T : Any> : InjectDelegate<T>

Delegate for fields that should be injected lazily.

Constructors

<init>

LazyDelegate(clz: Class<T>, name: String?)

Delegate for fields that should be injected lazily.

Properties

instance

val instance: T

provider

lateinit var provider: Provider<T>

Inherited Properties

clz

val clz: Class<T>

name

val name: String?

Functions

isEntryPointInjected

fun isEntryPointInjected(): Boolean

onEntryPointInjected

fun onEntryPointInjected(scope: Scope): Unit

Inherited Functions

getValue

operator fun getValue(thisRef: Any, property: KProperty<*>): T