Updated README.md with Multiton pattern description.
This commit is contained in:
parent
3ce1fde96c
commit
70e95e5d7c
@ -24,6 +24,7 @@ Creational design patterns abstract the instantiation process. They help make a
|
|||||||
* [Prototype](#prototype)
|
* [Prototype](#prototype)
|
||||||
* [Property](#property)
|
* [Property](#property)
|
||||||
* [Singleton](#singleton)
|
* [Singleton](#singleton)
|
||||||
|
* [Multiton](#multiton)
|
||||||
|
|
||||||
### Structural Patterns
|
### Structural Patterns
|
||||||
|
|
||||||
@ -583,6 +584,14 @@ validation and for building to order
|
|||||||
**Real world examples:**
|
**Real world examples:**
|
||||||
* [ObjectOutputStream](https://docs.oracle.com/javase/8/docs/api/java/io/ObjectOutputStream.html)
|
* [ObjectOutputStream](https://docs.oracle.com/javase/8/docs/api/java/io/ObjectOutputStream.html)
|
||||||
|
|
||||||
|
## <a name="multiton">Multiton</a> [↑](#list-of-design-patterns)
|
||||||
|
**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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Frequently asked questions
|
# Frequently asked questions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user