Singleton

  • Hunt J
N/ACitations
Citations of this article
1Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The Singleton pattern describes a type that can only have one object constructed for it. That is, unlike other objects it should not be possible to obtain more than one instance within the same virtual machine. Thus the Singleton pattern ensures that only one instance of a class is created. All objects that use an instance of that type use the same instance.

Cite

CITATION STYLE

APA

Hunt, J. (2013). Singleton. In Scala Design Patterns (pp. 61–69). Springer International Publishing. https://doi.org/10.1007/978-3-319-02192-8_5

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free