Global Information Lookup Global Information

Multiton pattern information


UML diagram of the multiton
UML diagram of the multiton

In software engineering, the multiton pattern is a design pattern which generalizes the singleton pattern. Whereas the 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 map.

Rather than having a single instance per application (e.g. the java.lang.Runtime object in the Java programming language) the multiton pattern instead ensures a single instance per key.

The multiton pattern does not explicitly appear as a pattern in the highly regarded object-oriented programming textbook Design Patterns.[1] However, the book describes using a registry of singletons to allow subclassing of singletons,[2] which is essentially the multiton pattern.[citation needed]

  1. ^ O'Docherty, Mike (2005). Object-oriented analysis and design: understanding system development with UML 2.0. Chichester: Wiley. p. 341. ISBN 0470092408.
  2. ^ Design patterns: elements of reusable object-oriented software. Boston, Mass. Munich: Addison-Wesley. 2011. p. 130. ISBN 0-201-63361-2.

and 5 Related for: Multiton pattern information

Request time (Page generated in 0.7579 seconds.)

Multiton pattern

Last Update:

In software engineering, the multiton pattern is a design pattern which generalizes the singleton pattern. Whereas the singleton allows only one instance...

Word Count : 610

Singleton pattern

Last Update:

holder idiom Multiton pattern Software design pattern Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1994). Design Patterns: Elements of Reusable...

Word Count : 996

Software design pattern

Last Update:

In software engineering, a design pattern describes a relatively small, well-defined aspect (i.e. functionality) of a computer program in terms of how...

Word Count : 2802

Lazy initialization

Last Update:

method pattern) Storing the instances in a map, and returning the same instance to each request for an instance with same parameters (multiton pattern) Using...

Word Count : 2803

Flyweight pattern

Last Update:

PHP_EOL); Copy-on-write Memoization Multiton Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1994). Design Patterns: Elements of Reusable Object-Oriented...

Word Count : 1630

PDF Search Engine © AllGlobal.net