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

Configuration validation. verify() ? #15

Open
fljot opened this issue Feb 4, 2016 · 4 comments
Open

Configuration validation. verify() ? #15

fljot opened this issue Feb 4, 2016 · 4 comments

Comments

@fljot
Copy link

fljot commented Feb 4, 2016

@darscan @creynders and everyone still alive,

what do you think about some verification API?
http://stackoverflow.com/questions/9896344/ioc-container-check-for-errors-at-compile-time

Case: I want to ensure my configuration is correct (no missing unmapped injections), in other words that all my dependencies tree can be successfully resolved. In my test I would get my configured injector (e.g. get actual configured context) and call verify() (for instance) on them.
I would expect injector (and it's parent injectors) to run through all mappings (Injector#_mappings) and call corresponding getInstance().

What do you think? I would be glad to implement it and make PR if I know it would be accepted.

@taokakao
Copy link

Wow! That thing would be really cool. Especially in big projects when you are waiting like FOREVER while maven is building and building and building and still building and then you are getting stupid mapping RTE.

@fljot
Copy link
Author

fljot commented Feb 12, 2016

@taokakao you would still need to build test though, but that might be faster yeah, depending on how you do it.

@creynders
Copy link
Member

@fljot sounds really cool. @darscan what do you think?

@alanlanglois
Copy link

sounds great!

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

4 participants