LazyServiceLookup

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

Lazy Lookup implementation

Constructors

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

Functions

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