Software Engineering KB

Home

❯

05 Software Design and Architecture

❯

01 Design Patterns

❯

01 Concept

❯

Singleton

Singleton

Feb 10, 20261 min read

  • design-patterns
  • creational
  • singleton

Singleton

← Back to Creational Patterns

One instance globally. Ensures a class has only one instance and provides a global point of access to it. Controversial due to hidden global state, difficulty in testing, and tight coupling.

Key Properties

  • Global Instance
  • Lazy Initialization
  • Thread Safety Concerns

Related

  • Dependency Injection (preferred alternative)
  • Factory Method (contrast)

design-patterns creational singleton


Graph View

  • Singleton
  • Key Properties
  • Related

Backlinks

  • Creational Patterns
  • Dependency Injection
  • Flyweight
  • Global Instance
  • Lazy Initialization
  • Thread Safety Concerns

Created with Quartz v4.5.2 © 2026

  • GitHub