EagerSingleton

constructor(builder: DIContainer.Builder, createdType: TypeToken<out T>, creator: NoArgBindingDI<Any>.() -> T)

Parameters

T

The created type.

createdType

The type of the created object.

creator

The function that will be called as soon as DI is ready. Guaranteed to be called only once. Should create a new instance.