Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
needs to be expanded taking advantage of the factory pattern and delegate pattern. The following diagram shows this solution with the conjunction of both patterns. Through the delegation pattern a delegator class reuses behavior by delegating behavior to another type. In the following link you can