Skip to content

Latest commit

 

History

History
 
 

Multiton

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Multiton Pattern

This pattern guarantees that there is only one instance per key within an application.

The Multiton pattern is similar to the singleton pattern. It ensures that only one instance of an object is associated with a single key.
This pattern simplifies the usage of globally shared objects in an application. Java's ScriptEngineManager is an example implementation of the Multiton pattern.

For more information, this Wikipedia Article offers a good overview of the pattern.