Package-level declarations
Tegral DI's DSL utilities. Provides a simple way of creating injection environments and injectable modules.
Types
Context for Tegral DI builders, such as module builders (tegralDiModule) or environment builders (tegralDi).
Builder DSL for creating an environment.This part of the DSL is specifically responsible for creating an EnvironmentContext.
DSL builder class for InjectableModules. It does not add functionality other than the building logic. All DSL functionalities are provided as extension functions of ContextBuilderDsl.
Functions
Add a module to the current definition. This adds all the declarations within the module to this context.
Add a definition of type T with the given supplier.
Add a definition of type T with the given constructor.
Add a definition of type T with the given qualifier and supplier.
Add a definition of type T with the given qualifier and constructor.
Add a definition of type T with the given class and constructor.
Add a definition of type T with the given class, qualifier and constructor.
Entry point for the Tegral DI DSL, used to build an injection environment.
Creates a module using the Tegral DI DSL with an optional name. You can then use the put
function to add this module to environment builders like the block in tegralDi.