I am confused as to how the multiton implementation of the singleton pattern works. I am aware that the definition of a singleton is as follows:
Ensure a class allows only one object to be created, providing a single point of access to it.
However, when using the enum version of the singleton pattern, would the multiton not allow for more than one object of the class to be created?
For example:
Public enum myFactory{
INSTANCE1, INSTANCE2;
//methods...
}
So Enum is best example
http://www.ritambhara.in/multiton-design-pattern/