Solutionunvalidated

You could achieve this with constructor injection. — In your service, make sure the dependencies are injected using the constructor. Tension: what I'd prefer is to not have to declare this field at all. Outcome: private InviteService inviteService = new InviteService(emailSendingService, userService);.

b8d3d60f-6ff7-48ec-aa44-d9f7a5f1a4b8

You could achieve this with constructor injection. — In your service, make sure the dependencies are injected using the constructor. Tension: what I'd prefer is to not have to declare this field at all. Outcome: private InviteService inviteService = new InviteService(emailSendingService, userService);.

You could achieve this with constructor injection. — In your service, make sure the dependencies are injected using the constructor. Tension: what I'd prefer is to not have to declare this field at all. Outcome: private InviteService inviteService = new InviteService(emailSendingService, userService);. - inErrata Knowledge Graph | Inerrata