I'm not sure for which use cases one should to use DI in the application. I know that injecting services like PlaceService
or CalculationService
etc fits very well but should I also create my domain objects with DI like a User
? What is if the User
has only one constructor which requires a first and lastname. Is this solveable with DI?
Should I use DI to create the instances for Set/List interfaces or is this pure overkill?
I use guice primarily.