ResolverBuilder class
@microsoft/fast-element/di.js > ResolverBuilder
ResolverBuilder class
A utility class used that constructs and registers resolvers for a dependency injection container. Supports a standard set of object lifetimes.
Signature:
export declare class ResolverBuilder<K>
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new instance of the |
Methods
Method | Modifiers | Description |
---|---|---|
Aliases the current key to a different key. | ||
Creates a resolver that invokes a callback function the first time that a dependency resolution is requested. The returned value is then cached and provided for all subsequent requests. | ||
Creates a resolver that invokes a callback function for every dependency resolution request, allowing custom logic to return the dependency. | ||
Creates a resolver for an existing object instance. | ||
Creates a resolver that enforces a singleton lifetime. | ||
Creates a resolver that creates a new instance for every dependency request. |