diogogmt / webvirt

NodeJS application to manage hyper-visors though libvirt
1 stars 2 forks source link

Apply Singleton pattern to some modules #18

Open diogogmt opened 11 years ago

diogogmt commented 11 years ago

Some of the modules are being required in multiple places.

We should apply the singleton pattern when needed to keep state saved in one single place.

Some of them will break if instantiated more than once, the logger module fro example.

sedge commented 11 years ago

I believe this has been resolved.