register

open fun <T> register(type: Class<T>, instanceSupplier: BootstrapRegistry.InstanceSupplier<T>)

Register a specific type with the registry. If the specified type has already been registered and has not been obtained as a singleton, it will be replaced.

Parameters

<T>

the instance type

type

the instance type

instanceSupplier

the instance supplier