Monthly Archives: December 2007

Singleton pattern and its destruction

The Singleton pattern is remarkably simple.  Its intent states, Ensure a class only has one instance, and provide a global point of access to it. It’s also flexible.  It helped us encapsulate the creation of User objects, which give file system users the authority to access their own files and no one else’s.  To obtain… Read More »