ch.sahits.codegen.java
Class GeneratorFactory

java.lang.Object
  extended by ch.sahits.codegen.java.GeneratorFactory

public final class GeneratorFactory
extends java.lang.Object

This factory method provides the correct CodeGenerator for any situation

Since:
0.9.0 TODO Replace IGeneratedJavaClass with IGeneratedJavaClass2
Author:
Andi Hotz

Constructor Summary
GeneratorFactory(IGeneratedJavaClass _model)
           
 
Method Summary
 IGenerator getInstance(EGenerationType type)
          Provide a generator for the type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorFactory

public GeneratorFactory(IGeneratedJavaClass _model)
Parameters:
_model -
Method Detail

getInstance

public IGenerator getInstance(EGenerationType type)
Provide a generator for the type

Parameters:
type - indicates what to generate
Returns:
IGenerator