Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
destruction. The singleton perhaps should be extendable and this extension shouldn’t affect clients code. Instead of one singleton instance could be needed an specific number of singleton instances(duoton, tripleton, etc). For providing a solution for these considerations this simple implementation