boost-ext/di

Is it possible to implement parent-child scope injectors?

vrecluse opened this issue · 2 comments

For example,
If not found in child injector, find in parent injector instead;
When child injector destruct, only destruct the objects in this child scope ;
Multiple children can share a parent injector, shared objects in parent are shared across children;
Arbitary levels of decendents, eg: parent - child - grandchildren scope and more...

Hey, it is absolutely possible. Tale a look at extensible_injector. Here is the test to navigate you

Greate, Thanks.