Functions
Link copied to clipboard
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
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
fun <T : Any> DIAware.ProviderOrNull(type: TypeToken<out T>, tag: Any? = null): LazyDelegate<() -> T?>
Gets a provider of T for the given type and tag, or null if none is found.
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 : Any, T : Any> DIAware.providerOrNull(tag: Any? = null, noinline fArg: () -> A): LazyDelegate<() -> T?>
inline fun <A, T : Any> DIAware.providerOrNull(tag: Any? = null, arg: Typed<A>): LazyDelegate<() -> T?>