org.objectweb.speedo.generation.enhancer
Class PersistentClassEnhancer

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

public class PersistentClassEnhancer
extends EnhancerComponent

Enhances a set of Java classes and renames it with Delegate as suffix.

The modifications to be done are described by the JDO Implementation's rules.

Author:
S.Chassande-Barrioz

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
PersistentClassEnhancer()
           
 
Method Summary
 boolean init()
          Initializes this PersistentClassEnhancer
 void process()
          Loads all binary 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

PersistentClassEnhancer

public PersistentClassEnhancer()
Method Detail

init

public boolean init()
Initializes this PersistentClassEnhancer

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

process

public void process()
             throws SpeedoException
Loads all binary 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