gh-pages / com.nextfaze.devfun.inject / KObjectInstanceProvider
KObjectInstanceProvider
class KObjectInstanceProvider : InstanceProvider (source)
Handles Kotlin object and companion object types.
Automatically handles internal or private types.
Internal Visible for testing - use at your own risk.
Constructors
| Name | Summary |
|---|---|
| <init> | KObjectInstanceProvider()Handles Kotlin object and companion object types. |
Functions
| Name | Summary |
|---|---|
| get | fun <T : Any> get(clazz: KClass<out T>): T?Get the Kotlin object instance of some clazz type. |