In software engineering, the multiton pattern is a design pattern similar to the singleton, which allows only one instance of a class to be created. The multiton pattern expands on the singleton concept to manage a map of named instances as key-value pairs. Rather than have a single instance per application the multiton pattern instead ensures a single instance per key. Most people and textbooks consider this a singleton pattern.
| Property | Value |
| dbpprop:abstract
|
- In software engineering, the multiton pattern is a design pattern similar to the singleton, which allows only one instance of a class to be created. The multiton pattern expands on the singleton concept to manage a map of named instances as key-value pairs. Rather than have a single instance per application the multiton pattern instead ensures a single instance per key. Most people and textbooks consider this a singleton pattern. For example, multiton does not appear in Design Patterns, the highly-regarded object-oriented programming text book. An example thread-safe Java implementation follows:
|
| dbpprop:hasPhotoCollection
| |
| dbpprop:package
| |
| dbpprop:reference
| |
| dbpprop:wikiPageUsesTemplate
| |
| rdf:type
| |
| rdfs:comment
|
- In software engineering, the multiton pattern is a design pattern similar to the singleton, which allows only one instance of a class to be created. The multiton pattern expands on the singleton concept to manage a map of named instances as key-value pairs. Rather than have a single instance per application the multiton pattern instead ensures a single instance per key. Most people and textbooks consider this a singleton pattern.
|
| rdfs:label
| |
| owl:sameAs
| |
| skos:subject
| |
| foaf:page
| |
| is dbpprop:redirect
of | |
| is owl:sameAs
of | |