injectMembers

abstract fun injectMembers(instance: T)(source)

Injects dependencies into the properties and functions of instance. Ignores the presence or absence of an injectable constructor.

Whenever a DependencyGraph creates an instance, it performs this injection automatically (after first performing constructor injection), so if you're able to let the graph create all your objects for you, you'll never need to use this function.

Parameters

instance

into which members are to be injected