Skip to content

Automatic registration via annotations? #90

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

Closed
fzyzcjy opened this issue Jun 25, 2020 · 2 comments
Closed

Automatic registration via annotations? #90

fzyzcjy opened this issue Jun 25, 2020 · 2 comments

Comments

@fzyzcjy
Copy link
Contributor

fzyzcjy commented Jun 25, 2020

Thanks for the library! Shall we have some automatic registration via, for instance:

@Bean
class Apple { ... }

which will automatically generate some code like

GetIt.I.registerSingleton<Apple>(Apple());

using the very famous code generator used by a lot of packages.

Thanks!

@escamoteur
Copy link
Collaborator

There is a package injectable that does this for GetIt

@fzyzcjy
Copy link
Contributor Author

fzyzcjy commented Jun 27, 2020

Sounds wonderful!

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

2 participants