The Parametric Singleton Design Pattern

Douglas A. Lyon, Francisco Castellanos

Research output: Contribution to journalArticlepeer-review

Abstract

The parametric singleton design pattern combines the singleton design pattern with a parameter that enables unique creation of instances of a class. These instances are cached in a table. When a user asks for an instance with these parameters, the table is checked and instances are created conditionally. Lazy instantiation is not new, nor, for that matter, is the singleton design pattern. However, parametric lazy instantiation is new and so is the parametric singleton.

Original languageAmerican English
JournalJournal of Object Technology
Volume6
DOIs
StatePublished - Mar 1 2007

Disciplines

  • Computer Engineering
  • Engineering

Cite this