from

Factory method that can be used to create an InstanceSupplier from a Supplier.

Return

a new InstanceSupplier

Parameters

<T>

the instance type

supplier

the supplier that will provide the instance