Injectable
Mark a class that can be injected by a Injector. This should be implemented by classes that cannot directly have their dependencies injected through constructor and need to have them injected through lateinit properties.
Functions
Extensions
Link copied to clipboard
fun <FallbackInitializeParam> Injectable<FallbackInitializeParam>.injectWithFallback(injectorKey: String?, fallbackInitializeParam: FallbackInitializeParam)
Try use an InjectorKey to retrieve an Injector and inject, if no Injector is found, invoke Injectable.fallbackInitialize with fallbackInitializeParam.