Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
delegate is also called after obtaining the singleton instance. The client can destroy the singleton instances by calling the destroyEC2MemOptIns or destroyEC2ComOptIns from the factory, depending on the delegate intended to be destroyed. Additional logic is executed before destruction of the