of

open fun <T> of(instance: T): BootstrapRegistry.InstanceSupplier<T>

Factory method that can be used to create an InstanceSupplier for a given instance.

Return

a new InstanceSupplier

Parameters

<T>

the instance type

instance

the instance