This is possible today, but it's not very easy and exposes more implementation details than I'd like in the API - it requires manually constructing all of the services and manually injecting them into the relevant dependent constructors in the correct order.
I'm imagining a central LPM class (or maybe NodeRegistry?) that can be constructed and passed all of the relevant implementations into. This gives type safety but also means that we don't need to worry about the constructor injection being part of the public API, we'll just expose the class, an input object type, and a bunch of types for the services.
This is possible today, but it's not very easy and exposes more implementation details than I'd like in the API - it requires manually constructing all of the services and manually injecting them into the relevant dependent constructors in the correct order.
I'm imagining a central
LPMclass (or maybe NodeRegistry?) that can be constructed and passed all of the relevant implementations into. This gives type safety but also means that we don't need to worry about the constructor injection being part of the public API, we'll just expose the class, an input object type, and a bunch of types for the services.