Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway242359
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
throwaway242359
4y ago
This is how I cope with Java DI. I write my classes with one constructor that takes anything I need as final private members. This has the benefit of working with any DI framework without any annotations or other hacks. It also has the bene