Class GeneratorRegistry

java.lang.Object
org.castor.ddlgen.GeneratorRegistry

public final class GeneratorRegistry extends Object
Registry for Generator implementations obtained from the configuration.
Since:
1.1
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Le Duc Bao, Ralf Joachim
  • Constructor Details

    • GeneratorRegistry

      public GeneratorRegistry(DDLGenConfiguration config)
      Construct an instance of each generator specified in given configuration.
      Parameters:
      config - The configuration.
  • Method Details

    • getGenerator

      public Generator getGenerator(String engine) throws GeneratorException
      Returns generator with given engine name or null if there is no such generator.
      Parameters:
      engine - Name of database engine.
      Returns:
      Generator with given engine name.
      Throws:
      GeneratorException - If no generator for engine can be found.
    • getGenerators

      public Collection<Generator> getGenerators()
      Returns a collection of the current configured generators.
      Returns:
      Collection of the current configured generators.
    • getEngineNames

      public Collection<String> getEngineNames()
      Returns a collection of the names of current configured database engines.
      Returns:
      Names of the configured database engines.