Package org.castor.ddlgen
Class GeneratorRegistry
- java.lang.Object
-
- org.castor.ddlgen.GeneratorRegistry
-
public final class GeneratorRegistry extends java.lang.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 Summary
Constructors Constructor Description GeneratorRegistry(DDLGenConfiguration config)
Construct an instance of each generator specified in given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getEngineNames()
Returns a collection of the names of current configured database engines.Generator
getGenerator(java.lang.String engine)
Returns generator with given engine name or null if there is no such generator.java.util.Collection<Generator>
getGenerators()
Returns a collection of the current configured generators.
-
-
-
Constructor Detail
-
GeneratorRegistry
public GeneratorRegistry(DDLGenConfiguration config)
Construct an instance of each generator specified in given configuration.- Parameters:
config
- The configuration.
-
-
Method Detail
-
getGenerator
public Generator getGenerator(java.lang.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 java.util.Collection<Generator> getGenerators()
Returns a collection of the current configured generators.- Returns:
- Collection of the current configured generators.
-
getEngineNames
public java.util.Collection<java.lang.String> getEngineNames()
Returns a collection of the names of current configured database engines.- Returns:
- Names of the configured database engines.
-
-