Abnaxos / meldioc

A prototype of an IoC (Inversion of Control) library for Java
MIT License
5 stars 1 forks source link

Remove implicit local provisions #104

Closed Abnaxos closed 2 years ago

Abnaxos commented 2 years ago

Currently, if a feature declares a provision that's not declared in a configuration mount that feature, the provision becomes local. If multiple features do this, we get to different provisions for each of these features. I called this effect "local provision".

I never made local provisions, they just happened. They're a side effect of how the code is generated. I first thought this was a good idea, a feature, but the more I think about the implications and semantics of local provisions, the more I think they shouldn't exist.

Therefore: