org.objectweb.speedo.generation.enhancer
Class PersistenceAwareEnhancer

java.lang.Object
  |
  +--org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
        |
        +--org.objectweb.speedo.generation.enhancer.EnhancerComponent
              |
              +--org.objectweb.speedo.generation.enhancer.PersistenceAwareEnhancer
All Implemented Interfaces:
GeneratorComponent

public class PersistenceAwareEnhancer
extends EnhancerComponent


Field Summary
protected  boolean isSrcJar
          Indicates whether the .class files would be found in an archive.
static java.lang.String LOGGER_NAME
           
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
logger, scp
 
Constructor Summary
PersistenceAwareEnhancer()
           
 
Method Summary
 void 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, 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

isSrcJar

protected boolean isSrcJar
Indicates whether the .class files would be found in an archive.
Constructor Detail

PersistenceAwareEnhancer

public PersistenceAwareEnhancer()
Method Detail

init

public void init()
Initializes this PersistenceAwareEnhancer
Overrides:
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.
Overrides:
process in class AbstractGeneratorComponent
Throws:
SpeedoEnhancerException - if something goes wrong