* Reduces checkstyle errors in marker * Reduces checkstyle errors in master-worker-pattern * Reduces checkstyle errors in mediator * Reduces checkstyle errors in memento * Reduces checkstyle errors in model-view-controller * Reduces checkstyle errors in model-view-presenter * Reduces checkstyle errors in module * Reduces checkstyle errors in monad * Reduces checkstyle errors in monostate * Reduces checkstyle errors in multiton * Reduces checkstyle errors in mute-idiom * Reduces checkstyle errors in mutex
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | ||
---|---|---|---|---|---|---|---|
pattern | Multiton | multiton | /patterns/multiton/ | Creational |
|
Also known as
Registry
Intent
Ensure a class only has limited number of instances, and provide a global point of access to them.
Applicability
Use the Multiton pattern when
- there must be specific number of instances of a class, and they must be accessible to clients from a well-known access point