On 08/02/2012 15:02, Alex Harui wrote:
One way is to define another set of mixins that get initialized before the SystemManager starts registering singletons. In my whiteboard re-write, the Singletons will probably be defined in some manifest, will only register just before first use, and there will be an event to give you a definite chance to register replacements.
That will not enable unit testing. In unit testing the "instances" have to be replaced before and after each unit to be tested.
In other words: A lot of times not just once at startup.

yours
Martin.

Reply via email to