Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
find an extend explanation about this pattern The Delegation Design Pattern in Scala. In this case EC2MemOptDelegator class which extends EC2 abstract class delegates the implementation of its behavior, the id attribute and the connect method, to EC2MemOpt class. The EC2MemOpt is a singleton class