An open API service indexing awesome lists of open source software.

https://github.com/levongh/singleton

The singleton pattern is a software design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.
https://github.com/levongh/singleton

Last synced: about 1 year ago
JSON representation

The singleton pattern is a software design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.

Awesome Lists containing this project

README

          

Intent:
Ensure a class has only one instance, and provide a global point of access to it.
Encapsulate "just-in-time" or "initialization on first use"

The Problem:
Application needs one, and only one, instance of an object.
Additionaly, lazy initialization and blobal access are necessary