Add a dependency to the Container. If this type is already present, just return its associated configuration object. Example of usage:
Container.bind(PersonDAO).to(ProgrammerDAO).scope(Scope.Singleton);
The type that will be bound to the Container
a container configuration
Retrieve an object from the container. It will resolve all dependencies and apply any type replacement before return the object. If there is no declared dependency to the given source type, an implicity bind is performed to this type.
The dependency type to resolve
an object resolved for the given source type;
Generated using TypeDoc
The IoC Container class. Can be used to register and to retrieve your dependencies. You can also use de decorators AutoWired, Scoped, Singleton, Provided and Provides to configure the dependency directly on the class.