candlepin/subscription-manager — pull request #646 by cakofony (2013-06-11 14:36:33+00:00)
Title: Ckozak/cert sorter time

Reduce compliance status calls as much as possible by using a CertSorter singleton.

Before, we would create a new one, which would sync with the server, every time we wanted to read from it. Now we are can pull down the global instance to read info, and call refresh() if we have done something that will cause it to change.

Please let me know if there's somewhere else I should have a refresh() call, missing one would cause a few bugs.

Also, I added LazyLoader, which singletons can subclass in order to be loaded as needed rather than at run time.