require "generators/nil_generator"
require "generators/graphviz/graphviz_generator"
require "generators/smell_list/smell_list_generator"
require "generators/dependency_list/dependency_list_generator"

class GeneratorFactory
	@generators = {
		"graphviz" => GraphvizGenerator,
		"smells" => SmellListGenerator,
		"dependencies" => DependencyListGenerator
	}
	@generators.default = NilGenerator

	def self.create_generator(config)
		generator_class = @generators[config[:generator]]
		generator = generator_class.new config
	end
end
