DependencyInjector icon indicating copy to clipboard operation
DependencyInjector copied to clipboard

Support @Named annotation

Open ljacqu opened this issue 2 years ago • 1 comments

Support injections with @Named.

  • How can @Named beans be registered manually to the injector?
  • Do we want to pick up @Named on 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 @Named annotation is provided?
  • Allow to retrieve beans by name?
  • What happens on name clash? On name clash of implicit types? (Potential breaking change)

ljacqu avatar Jan 17 '23 20:01 ljacqu

Relates to #44

ljacqu avatar Jan 17 '23 20:01 ljacqu