|
lintel 0.2.0
|
#include <Container.h>
Public Member Functions | |
| template<typename TInstance > | |
| void | registerInstance (std::shared_ptr< TInstance > instance) |
| template<typename TInstance > | |
| RegistrationBuilder< TInstance > | registerType () |
| std::shared_ptr< Container > | build () |
Collects registrations and builds an immutable Container from them.
|
inline |
Build the immutable container from everything registered so far.
Register a ready-made instance under its static type.
| TInstance | the concrete type of the instance |
|
inline |
Register a type for on-demand construction.
| TInstance | the concrete type; must be default-constructible or injectable |