Creates the container with all queued registrations applied.
An open container whose owner can call close()
Queues a provider registration to be applied at build time.
The service type
The capability token
Class, factory, or value provider
Optionaloptions: ProviderOptions<T>
Lifecycle scope
This builder for chaining
Enables or disables auto-registration fallback to the external resolver.
true to enable fallback (defaults to false)
This builder for chaining
Sets the default lifecycle scope for providers registered without an explicit scope.
The default scope
This builder for chaining
Sets the external resolver used when auto-registration is enabled.
The external resolver (e.g. the service registry)
This builder for chaining
Fluent builder for
DiContainerinstances.Collects configuration and provider registrations, then produces a ready-to-use container via
build.Example
Since
0.1.0