Attributes
- Companion:
- object
- Graph
- Supertypes
Members list
Type members
Inherited classlikes
Use this to create utility functions that add bindings mutably to the current module, as opposed to creating new modules and including them.
Use this to create utility functions that add bindings mutably to the current module, as opposed to creating new modules and including them.
Example:
import distage.{ClassConstructor, Tag, ModuleDef}
import izumi.distage.model.definition.dsl.ModuleDefDSL
trait RegisteredComponent
class RegisteredComponentImpl extends RegisteredComponent
def addAndRegister[T <: RegisteredComponent: Tag: ClassConstructor](implicit mutateModule: ModuleDefDSL#MutationContext): Unit = {
new mutateModule.dsl {
make[T]
many[RegisteredComponent]
.weak[T]
}
}
new ModuleDef {
addAndRegister[RegisteredComponentImpl]
}
Attributes
- Inherited from:
- AbstractBindingDefDSL
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Returns:
ALL instances contained in
this
locator and in all the parent locators, including injector bootstrap environment. Returned keys may overlap if parent locators contain objects for the same key. Instances from parent locators will be earlier in the list than instances from this locator.- See also:
izumi.distage.bootstrap.BootstrapLocator
- Inherited from:
- Locator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Attributes
- Definition Classes
- Inherited from:
- AbstractLocator
Run function
filling all the arguments from the object graph.
Run function
filling all the arguments from the object graph.
Works similarly to function bindings in izumi.distage.model.definition.ModuleDef.
objects.run {
(hellower: Hellower, bye: Byer) =>
hellower.hello()
byer.bye()
}
Attributes
- See also:
- Inherited from:
- Locator