Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 456 Bytes

File metadata and controls

17 lines (13 loc) · 456 Bytes
layout pattern
title Multiton
folder multiton
permalink /patterns/multiton/
categories Creational
tags Java

Intent: Ensure a class only has limited number of instances, and provide a global point of access to them.

alt text

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