Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Singleton Pattern

Technique

A Gang of Four creational design pattern that restricts a class to exactly one instance and provides a single global point of access to it, commonly used for shared resources such as a configuration object or a connection pool.

Facts
Origin Year
1994 1
Core Principle
Restricts a class to exactly one instance and provides a single well-known point of access to it, used when exactly one object must coordinate actions across a system. 2
Connections

Associated With

Erich Gamma, Pioneers

Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Singleton pattern among the original 23.

In Field

Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section, first sentence
Quote, Lead section, first sentence
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source
2. Wikipedia: Singleton Pattern
Wikimedia FoundationLead section, first sentence
Quote, Lead section, first sentence
the singleton pattern is a software design pattern that restricts the instantiation of a class to a singular instance.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.