A container implements the Dependency Injection pattern.
Containers are exclusively created with ContainerBuilder.
By default, the container it-self is available from the registry with the key ContainerSymbol.
Create and initialize a container
import inversion from "@tmorin/ceb-inversion-core"inversion.ContainerBuilder.get() .build() .initialize() .then(initializedContainer => { const resolvedContainer = initializedContainer.registry .resolve(inversion.ContainerSymbol) console.assert(initializedContainer === resolvedContainer) }) .catch(error => console.error( "unable to initialize the container", error ))
The registry contains all managed objects.
The name of the container.
Clean a container instance.
the container it-self
Initialize the container.
Generated using TypeDoc
A container implements the Dependency Injection pattern.
Containers are exclusively created with ContainerBuilder.
By default, the container it-self is available from the registry with the key ContainerSymbol.
Create and initialize a container