Class FactoryProducer

java.lang.Object
com.edu.xmum.CST210.Factory.FactoryProducer

public class FactoryProducer extends Object
FactoryProducer is responsible for providing the appropriate factory instance based on the choice provided.
  • Constructor Details

    • FactoryProducer

      public FactoryProducer()
  • Method Details

    • getFactory

      public static AbstractFactory getFactory(String choice)
      Returns the appropriate factory instance based on the choice provided.
      Parameters:
      choice - the type of factory required.
      Returns:
      the corresponding AbstractFactory instance.