DependencyInjector
DependencyInjector copied to clipboard
Support @Named annotation
Support injections with @Named.
- How can
@Namedbeans be registered manually to the injector? - Do we want to pick up
@Namedon class declarations themselves? Means we'd need to extend the injector to be able to associate a bean to interfaces and its superclasses, which entails a potential big rework... (see also #34) - If the same bean is injected without
@Named, it should be another instance - Add a default name if no
@Namedannotation is provided? - Allow to retrieve beans by name?
- What happens on name clash? On name clash of implicit types? (Potential breaking change)
Relates to #44