D I Aware
interface DIAware
Content copied to clipboard
Any class that extends this interface can use DI "seamlessly".
Functions
Properties
Inheritors
DI
Link copied to clipboard
Extensions
AllFactories
Link copied to clipboard
AllInstances
Link copied to clipboard
inline fun <T : Any> DIAware.allInstances(tag: Any? = null): DIProperty<List<T>>
Content copied to clipboard
Gets all instances from providers that match the the given return type and tag, curried from factories that take an argument A.
Gets all instances from providers that match the the given return type and tag, curried from factories that take an argument A.
AllProviders
Link copied to clipboard
inline fun <T : Any> DIAware.allProviders(tag: Any? = null): DIProperty<List<() -> T>>
Content copied to clipboard
Gets all providers that match the the given return type and tag, curried from factories that take an argument A.
Gets all providers that match the the given return type and tag, curried from factories that take an argument A.
FactoryOrNull
Link copied to clipboard
inline fun <A : Any, T : Any> DIAware.factoryOrNull(tag: Any? = null): DIProperty<(A) -> T?>
Content copied to clipboard
Instance
Link copied to clipboard
InstanceOrNull
Link copied to clipboard
inline fun <T : Any> DIAware.instanceOrNull(tag: Any? = null): DIProperty<T?>
Content copied to clipboard
inline fun <A : Any, T : Any> DIAware.instanceOrNull(tag: Any? = null, arg: A): DIProperty<T?>
Content copied to clipboard
inline fun <A, T : Any> DIAware.instanceOrNull(tag: Any? = null, arg: Typed<A>): DIProperty<T?>
Content copied to clipboard
newInstance
Link copied to clipboard
On
Link copied to clipboard
Provider
Link copied to clipboard
ProviderOrNull
Link copied to clipboard
inline fun <T : Any> DIAware.providerOrNull(tag: Any? = null): DIProperty<() -> T?>
Content copied to clipboard
inline fun <A : Any, T : Any> DIAware.providerOrNull(tag: Any? = null, arg: A): DIProperty<() -> T?>
Content copied to clipboard
inline fun <A, T : Any> DIAware.providerOrNull(tag: Any? = null, arg: Typed<A>): DIProperty<() -> T?>
Content copied to clipboard