org.objectweb.speedo.generation.generator
Class SpeedoGenerator

java.lang.Object
  extended byorg.objectweb.speedo.generation.lib.AbstractGeneratorComponent
      extended byorg.objectweb.speedo.generation.generator.SpeedoGenerator
All Implemented Interfaces:
GeneratorComponent

public class SpeedoGenerator
extends AbstractGeneratorComponent

This class generates files "proxy", "manager" and "fields" for persistence capable classes.

Author:
S. Chassande-Barrioz

Field Summary
static java.lang.String LOGGER_NAME
           
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
debug, logger, scp
 
Constructor Summary
SpeedoGenerator()
           
 
Method Summary
 boolean init()
           
 void process()
          Generation all files , and Fields.
 
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
getLogger, getSpeedoCompilerParameter, setLogger, setSpeedoCompilerParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_NAME

public static final java.lang.String LOGGER_NAME
See Also:
Constant Field Values
Constructor Detail

SpeedoGenerator

public SpeedoGenerator()
Method Detail

init

public boolean init()
Specified by:
init in interface GeneratorComponent
Specified by:
init in class AbstractGeneratorComponent

process

public void process()
             throws SpeedoException
Generation all files , and Fields. If a previous task on a class has failed, the methods doesn't create files for this class.

Specified by:
process in interface GeneratorComponent
Specified by:
process in class AbstractGeneratorComponent
Throws:
SpeedoException - if there is a problem during writing the new files and the boolean failsonerror is set on true.