injectOrNull

open override fun <T : Any> injectOrNull(clazz: KClass<T>, environment: String?, config: InjectorConfig.Builder.() -> Unit?): T?

Retrieves an object of type clazz (it will be created or provided depending on its Scope) If fails getting it, will return null

Parameters

clazz

Class or Interface that you want to retrieve

environment

The environment in which you would like to retrieve the object

config

Some extra configuration needed when injecting the object.