AIR Application written using Singletons needs to spawn multiple instances of app
问题 I have an AIR application that uses Singletons to manage global state throughout the application. Works great for what it does (manages a network appliance). But now the client wants to spawn multiple application instances from the first instance so they can manage multiple hardware devices at the same time ... kind of like a dashboard but lots bigger. As you can guess, I coded myself into a corner with the singletons so if I refactor the application to have a bootstrap class that launches