-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Services are created with instantiation service #5653
Copy link
Copy link
Closed
Labels
Milestone
Description
With 951ed93 I see that services like the side bar part are created using the instantiation service. I think that is very risky because the instantiation service does not include all services at the point where you use it.
I explicitly decided to not use the instantiation service to create other services but explicitly call out to the services I depend on so that we do not end up in weird NPEs because some services are not ready.
I preferred the previous explicit way of services declaring their dependencies in the constructor. What is the benefit from moving away from that?
Reactions are currently unavailable