RealObjectMaker

fun interface RealObjectMaker

A function that makes real objects (usually via reflection). Should always return a valid value or throw withh a descriptive reason.

Functions

Link copied to clipboard
abstract fun makeRealObject(key: DependencyKey<*>, dependencies: Dependencies): Any?

Return a new object matching the type represented in the key. Any dependencies needed can be pulled from the dependencies object