commit | ed4d62b3c7ba47289787f2bc862dd1fd53175f61 | [log] [tgz] |
---|---|---|
author | Marco Poletti <poletti.marco@gmail.com> | Mon Nov 24 18:24:09 2014 +0000 |
committer | Marco Poletti <poletti.marco@gmail.com> | Mon Nov 24 18:24:22 2014 +0000 |
tree | 9e83605387c355af14d0e180bc21214a0358fcb4 | |
parent | a82a4449d8c872ee029443a3016ca9a91cc32ead [diff] |
Assisted injection is just a convenience feature, it can be implemented using registerProvider(). Do so, and move the assisted injection code out of InjectorStorage into component.defn.h.
Fruit is a dependency injection framework for C++, loosely inspired by the Guice framework for Java. It uses C++ metaprogramming together with some new C++11 features to detect most injection problems at compile-time. It allows to split the implementation code in "components" (aka modules) that can be assembled to form other components. From a component with no requirements it's then possible to create an injector, that provides an instance of the interfaces exposed by the component.
See the Fruit website for more information, including installation instructions, tutorials and reference documentation.