Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
destroyEC2ComOptIns = { if (this.ec2ComOptIns.nonEmpty) { this.ec2ComOptIns.get.destroy this.ec2ComOptIns = None } } } When creating the delegate instances, it is called the getEC2MemOptIns or getEC2ComOptIns from the delegators. When calling these methods, the create method of the corresponding