register

abstract fun <T> register(type: Class<T>, factory: T)

Registers the given factory of the given type to this factory provider.

Parameters

T

the factory type

type

the class of the type

factory

the factory to register

Throws

if the factory is already registered