Lazy DI
Constructors
Functions
Properties
Extensions
Link copied to clipboard
Gets all instances from providers that match the the given return type and tag.
inline fun <A, T : Any> DIAware.allInstances(tag: Any? = null, arg: Typed<A>): LazyDelegate<List<T>>
inline fun <A : Any, T : Any> DIAware.allInstances(tag: Any? = null, noinline fArg: () -> A): LazyDelegate<List<T>>
Gets all instances from providers that match the the given return type and tag, curried from factories that take an argument A.
Link copied to clipboard
Gets all providers that match the the given return type and tag.
inline fun <A : Any, T : Any> DIAware.allProviders(tag: Any? = null, arg: A): LazyDelegate<List<() -> T>>
inline fun <A, T : Any> DIAware.allProviders(tag: Any? = null, arg: Typed<A>): LazyDelegate<List<() -> T>>
inline fun <A : Any, T : Any> DIAware.allProviders(tag: Any? = null, noinline fArg: () -> A): LazyDelegate<List<() -> T>>
Gets all providers that match the the given return type and tag, curried from factories that take an argument A.
Link copied to clipboard
Gets a factory of T for the given argument type, return type and tag, or nul if none is found.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets an instance of T for the given type and tag, or null if none is found.
inline fun <A : Any, T : Any> DIAware.instanceOrNull(tag: Any? = null, noinline fArg: () -> A): LazyDelegate<T?>
Link copied to clipboard
Allows to create a new instance of an unbound object with the same API as when bounding one.
Link copied to clipboard
Gets a provider of T for the given type and tag, or null if none is found.
inline fun <A : Any, T : Any> DIAware.providerOrNull(tag: Any? = null, arg: A): LazyDelegate<() -> T?>
inline fun <A, T : Any> DIAware.providerOrNull(tag: Any? = null, arg: Typed<A>): LazyDelegate<() -> T?>
inline fun <A : Any, T : Any> DIAware.providerOrNull(tag: Any? = null, noinline fArg: () -> A): LazyDelegate<() -> T?>