co-stig / opencompare

Open Compare is a generic open-source compare tool
MIT License
2 stars 0 forks source link

Make Configuration a singleton #14

Closed co-stig closed 9 years ago

co-stig commented 9 years ago

Currently all Configuration members are static, it's not a proper singleton. Make it an object, preferably persistable to/from snapshot.properties.

co-stig commented 9 years ago

Done, replaced Configuration with a couple of ApplicationConfiguration and ProcessConfiguration classes. The first one is a singleton (although it's easy to convert it to a normal factory), while the secod is just a configuration bean with no static stuff in it at all.