MCPcopy Create free account
hub / github.com/amikey/java-design-patterns / App

Class App

multiton/src/main/java/com/iluwatar/multiton/App.java:15–28  ·  view source on GitHub ↗

Whereas Singleton design pattern introduces single globally accessible object the Multiton pattern defines many globally accessible objects. The client asks for the correct instance from the Multiton by passing an enumeration as parameter. In this example Nazgul is the Multiton and we can ask singl

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected