Closed Voiteh closed 5 years ago
We could have FallbackDecorato
r introducing fallback
annotation providing ability to fallback everytime the injection fails. Probably we could hold this as separate collection
Map<Type<>,Dependency>>
in Dependencies
class
Whenever we want to provide a dependency it's name is taken in consideration to be injected. There should be a way to perform injection of first found dependency on Type branch to ease injection of singletons. In such case there should be annotation for controlling of such behavior.