Multiton pattern: Difference between revisions

Content deleted Content added
Importing Wikidata short description: "Design pattern, similar to the singleton, but allowing more than one instance of a class to be created" (Shortdesc helper)
Changing short description from "Design pattern, similar to the singleton, but allowing more than one instance of a class to be created" to "Software engineering design pattern" (Shortdesc helper)
Line 1:
{{Short description|Software engineering design pattern}}
{{Short description|Design pattern, similar to the singleton, but allowing more than one instance of a class to be created}}
{{Plain image with caption|Image:Multiton.svg|UML diagram of the multiton}}
In [[software engineering]], the '''multiton pattern''' is a [[design pattern (computer science)|design pattern]] which generalizes the [[singleton pattern]]. Whereas the [[singleton pattern | singleton]] allows only one instance of a class to be created, the multiton pattern allows for the controlled creation of multiple instances, which it manages through the use of a [[associative array|map]].