mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 14:59:25 +00:00
22 lines
478 B
Markdown
22 lines
478 B
Markdown
---
|
|
layout: pattern
|
|
title: Multiton
|
|
folder: multiton
|
|
permalink: /patterns/multiton/
|
|
categories: Creational
|
|
tags:
|
|
- Java
|
|
- Difficulty-Beginner
|
|
---
|
|
|
|
## 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
|