2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Multiton
|
|
|
|
folder: multiton
|
2015-08-15 18:03:05 +02:00
|
|
|
permalink: /patterns/multiton/
|
2015-08-16 17:07:36 +05:30
|
|
|
categories: creational
|
2015-08-13 23:54:40 +02:00
|
|
|
tags: pattern_tag
|
|
|
|
---
|
|
|
|
|
|
|
|
**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
|
|
|
|
|
2015-08-15 18:03:05 +02:00
|
|
|
* there must be specific number of instances of a class, and they must be accessible to clients from a well-known access point
|