winter / io.jentz.winter.inject / Factory

Factory

interface Factory<R : Any> : (Graph) -> R

Interface implemented by factories generated by winter-compiler.

Functions

register

abstract fun register(builder: Component.Builder, override: Boolean): TypeKey<R>

Register the factory on the given builder instance.