LazyServiceLookup

class LazyServiceLookup<T : Any>(context: InjectionContext, map: Map<KClass<out T>, (InjectionContext) -> T>) : Lookup<T>

Lazy Lookup implementation

Constructors

Link copied to clipboard
fun <T : Any> LazyServiceLookup(context: InjectionContext, map: Map<KClass<out T>, (InjectionContext) -> T>)

Functions

Link copied to clipboard
open override fun all(): List<T>
Link copied to clipboard
open override fun <X : T> get(cls: KClass<X>): X
Link copied to clipboard
open override fun <X : T> getOrNull(cls: KClass<X>): X?
Link copied to clipboard
open override fun <X : T> has(cls: KClass<X>): Boolean