Skip to main content
Article
The Parametric Singleton Design Pattern
Journal of Object Technology
  • Douglas A. Lyon, Fairfield University
  • Francisco Castellanos
Document Type
Article
Article Version
Publisher's PDF
Publication Date
3-1-2007
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.

Comments

Copyright 2007 Journal of Object Technology

Archived with permission from the copyright holder.

Published Citation
Douglas Lyon, Francisco Castellanos, “The Parametric Singleton Design Pattern”, Journal of Object Technology, Volume 6, no. 3 (March 2007), pp. 13-23
DOI
10.5381/jot.2007.6.3.c2
None
Peer Reviewed
Citation Information
Douglas A. Lyon and Francisco Castellanos. "The Parametric Singleton Design Pattern" Journal of Object Technology Vol. 6 Iss. 3 (2007)
Available at: http://works.bepress.com/douglas_lyon/10/