Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I want lightweight, and compile time. But I'll take compile time only if need be.

In terms of lightweight, I have never needed to use the @Alternative binding [0]. Nearly all of my needs are met by being able to define "this is a singleton, this is a dependency that you should always inject a new instance of, and this is a property."

But it's surprisingly hard to find DI that limits itself like that. The DI in Micronaut and Quarkus are probably the closest to my ideal. Compile time, and only implement a subset of CDI etc.

[0]: https://netbeans.apache.org/kb/docs/javaee/cdi-validate.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: