Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
EC2ComOptDelegator extends EC2Con { override val id = EC2ConnectionFactory.getEC2ComOptIns.id override def connect: String = EC2ConnectionFactory.getEC2ComOptIns.connect } Through the factory pattern the client uses a factory object that instantiates different objects that inherit from a given