Overview of DIOD API surface
mainDIOD v3.0.0 provides a dependency injection system centered around a Container and a ContainerBuilder. The API is composed of several key building blocks:
Core Classes
ContainerBuilder: Used to construct and configure a dependency injection container.
Core Interfaces
Container: The primary interface for interacting with the dependency injection container.Registration: Represents a registered dependency within the container.Newable: Represents a class or constructor that can be instantiated.Abstract: Base interface for DIOD abstractions.ConfigurableRegistration: Interface for registrations that allow configuration.WithDependencies: Interface for managing dependencies of a registration.WithScopeChange: Interface for managing the scope of a registration.
Type Aliases
Identifier: The key used to look up a dependency.Factory: A function used to create an instance of a dependency.Instance: The resolved value of a dependency.BuildOptions: Configuration options used during the container building process.
Functions
Service: A utility function for defining services.