MuseScore
MuseScore copied to clipboard
Added ioc context to inject. Step 5
Perhaps for "stateless" things, like ProjectCreator, and Renderer, we could perhaps use one global instance, instead of one for each context. But we can do that in the future; I understand that it might be better to apply a uniform approach right now, and look later which specific cases can be refined.
Perhaps for "stateless" things, like ProjectCreator, and Renderer, we could perhaps use one global instance, instead of one for each context. But we can do that in the future; I understand that it might be better to apply a uniform approach right now, and look later which specific cases can be refined.
Yes, I thought about this too and came to the same conclusions. In the future, we may make a special base interface, a marker, that needs to be inherited from in order to become a "global" instance. And a number of other things will need to be done for everything to work reliably and automatically.