prototype

inline fun <R> prototype(typeKey: TypeKey<R> = erased(), noinline factory: GFactory<R>): PrototypeService<R>(source)

Register a prototype scoped factory for an instance of type R.

Parameters

typeKey

The TypeKey this service is registered with.

factory

The factory for type R.