commit | 67fa9745e4a2525a79494acdfdd89754f6a47572 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Oct 09 02:31:12 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 09 02:31:12 2020 +0000 |
tree | 196bf451ec7a656bcbaaeffce735fe19e5c7b66f | |
parent | 5fc3332375d47766646a7f0789311d3ec3eefeda [diff] | |
parent | c235dc3daf8b3cc7c1f3671514ba5263341e574f [diff] |
[automerger skipped] Skip ab/6749736 in stage. am: c235dc3daf -s ours am skip reason: Change-Id I9fc11cc60636a062e089fdb8fc4817adac45cff5 with SHA-1 ee005fa5e8 is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/google-fruit/+/12797063 Change-Id: Ia1fad4e4220e6a3745c77c0cbeaa0f067cb1c6ed
Fruit is a dependency injection framework for C++, loosely inspired by the Guice framework for Java. It uses C++ metaprogramming together with some 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 wiki for more information, including installation instructions, tutorials and reference documentation.