- All Known Implementing Classes:
public interface InstanceProviderContract for a factory that creates instances given a type.
Useful for resultset mapping, where each row in the resultset might require a new instance.
Implementors are suggested to employ application-specific strategies, such as having a DI container handle instance creation.
- Mark Allen
provideProvides an instance of the given
Whether the instance is new every time or shared/reused is implementation-dependent.
- Type Parameters:
T- instance type token
instanceClass- the type of instance to create
- an instance of the given