ktp / toothpick.ktp.delegate / EagerDelegate

EagerDelegate

class EagerDelegate<T : Any> : InjectDelegate<T>

Delegate for fields that should be injected eagerly.

Constructors

<init>

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

Delegate for fields that should be injected eagerly.

Properties

instance

lateinit var instance: 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