Builds a new container and resets the builder to a default state.
The Promised container.
Registers a constant value as a component.
The name of the component.
The static value to register as the component.
provides a fluent interface.
Determines if a named component has been added to the builder.
The component name to check.
Whether the component factory is present.
Registers a component.
The factory
parameter must be a Function
that returns the component.
You can provide an async function or one that returns a Promise
.
The tags
parameter must be an Array
of string
values. There are a few
tags with special meanings:
@eager
- The component will be instantiated when the container is built.provides a fluent interface.
Abandons registered components and resets the builder to a default state.
Assembles configuration for a dependency injection container.