Overview of Fruit dependency injection
masterFruit is a C++ dependency injection framework inspired by Java's Guice. It leverages C++ metaprogramming and C++11 features to detect many injection errors at compile-time.
Key concepts:
- Components (Modules): Units of implementation code that can be assembled into larger components.
- Injector: An object created from a component that has no requirements, which provides instances of the interfaces exposed by that component.