org.objectweb.speedo.generation.enhancer
Class PersistenceAwareEnhancer

java.lang.Object
  extended byorg.objectweb.speedo.generation.lib.AbstractGeneratorComponent
      extended byorg.objectweb.speedo.generation.enhancer.EnhancerComponent
          extended byorg.objectweb.speedo.generation.enhancer.PersistenceAwareEnhancer
All Implemented Interfaces:
GeneratorComponent

public class PersistenceAwareEnhancer
extends EnhancerComponent


Field Summary
static java.lang.String LOGGER_NAME
           
 
Fields inherited from class org.objectweb.speedo.generation.enhancer.EnhancerComponent
isSrcJar
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
debug, logger, scp
 
Constructor Summary
PersistenceAwareEnhancer()
           
 
Method Summary
 boolean init()
          Initializes this PersistenceAwareEnhancer
 void process()
          Loads all persistence aware classes described by the Object Model and applies revelant modification to each of them.
 
Methods inherited from class org.objectweb.speedo.generation.enhancer.EnhancerComponent
loadJavaClass, loadJavaClass, writeJavaClass
 
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

PersistenceAwareEnhancer

public PersistenceAwareEnhancer()
Method Detail

init

public boolean init()
Initializes this PersistenceAwareEnhancer

Specified by:
init in interface GeneratorComponent
Specified by:
init in class AbstractGeneratorComponent

process

public void process()
             throws SpeedoException
Loads all persistence aware classes described by the Object Model and applies revelant modification to each of them.

Specified by:
process in interface GeneratorComponent
Specified by:
process in class AbstractGeneratorComponent
Throws:
SpeedoEnhancerException - if something goes wrong
SpeedoException