MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

Added ioc context to inject. Step 5

Open igorkorsukov opened this issue 1 year ago • 2 comments

igorkorsukov avatar May 13 '24 20:05 igorkorsukov

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.

cbjeukendrup avatar May 21 '24 23:05 cbjeukendrup

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.

igorkorsukov avatar May 22 '24 06:05 igorkorsukov