This abstract implementation is used to helps the implementation of modules.
Implement and register a module
import {ContainerBuilder, AbstractModule} from "@tmorin/ceb-inversion-core"// implement a moduleclass GreetingModule extends AbstractModule { constructor() { super() } async configure() { this.registry.registerValue("greeting", "hello, World!") }}// register the moduleconst container = ContainerBuilder.get() .module(new GreetingModule()) .build()
The registry.
Implement this method to register things in the container registry.
Override this method to cleanup things when the container is disposed.
Generated using TypeDoc
This abstract implementation is used to helps the implementation of modules.
Implement and register a module