register

inline fun <T> FactoryProvider.register(factory: T)

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

Parameters

T

the factory type

factory

the factory to register

Throws

if the factory is already registered