Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support @Named annotation #227

Open
ljacqu opened this issue Jan 17, 2023 · 1 comment
Open

Support @Named annotation #227

ljacqu opened this issue Jan 17, 2023 · 1 comment
Milestone

Comments

@ljacqu
Copy link
Owner

ljacqu commented Jan 17, 2023

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 Add non-default handler that "autowires" interface #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
Copy link
Owner Author

ljacqu commented Jan 17, 2023

Relates to #44

@ljacqu ljacqu added this to the 2.0 milestone Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant