Creates a new instance of ProxyDiContainer.
Optional
settings: ContainerSettingsOptional container settings to override defaults.
Optional
parent: ProxyDiContainerOptional parent container.
Readonly
idJust unique number identifier for this container, nothing more
Optional
Readonly
parentOptional parent container from which this container can inherit dependencies.
Readonly
settingsSettings that control the behavior of the container and it's children
All direct descendants of this container
Registers a dependency in the container. Could register eacher class or instance. In case of class, it will be instantiated without any parameters.
Optional
dependencyId: DependencyIdThe unique identifier for the dependency in this container.
Dependency instance, registered in container
Unique identifier that could use to resolve this instance from container where it was registered
ProxyDi container in which this instance was registered
Registers a dependency in the container. Could register eacher class or instance. In case of class, it will be instantiated without any parameters.
Dependency instance, registered in container
Unique identifier that could use to resolve this instance from container where it was registered
ProxyDi container in which this instance was registered
Checks if a dependency with the given ID is known to the container or its ancestors which means that it can be resolved by this container
The identifier of the dependency.
True if the dependency is known, false otherwise.
Resolves a dependency either by its dependency ID or through a class constructor for auto-injectable classes.
The resolved dependency instance with container metadata.
Unique identifier that could use to resolve this instance from container where it was registered
ProxyDi container in which this instance was registered
Resolves a dependency either by its dependency ID or through a class constructor for auto-injectable classes.
The resolved dependency instance with container metadata.
Unique identifier that could use to resolve this instance from container where it was registered
ProxyDi container in which this instance was registered
Injects dependencies to the given object based on its defined injections metadata. Does not affect the container.
The object to inject dependencies into.
Creates instances for all injectable classes and registers them in this container.
This container to allow use along with constructor.
Finalizes dependency injections, prevents further rewriting of dependencies, and recursively bakes injections for child containers.
Creates a child container that inherits settings and dependencies from this container.
A new child instance of ProxyDiContainer.
Removes a given dependency from the container using either the dependency instance or its ID.
The dependency instance or dependency identifier to remove.
Destroys the container by removing all dependencies, recursively destroying child containers and removing itself from its parent.
Unique identifier of container
A dependency injection container