org.objectweb.speedo.generation.parser.ejb
Class EJBAnnotationParser

java.lang.Object
  extended by org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
      extended by org.objectweb.speedo.generation.parser.ejb.EJBAnnotationParser
All Implemented Interfaces:
GeneratorComponent

public class EJBAnnotationParser
extends AbstractGeneratorComponent


Field Summary
static java.lang.Class[] CBCLASSES
           
static int[] CBIDS
           
static java.lang.String[] CBNAMES
           
static java.lang.String LOGGER_NAME
           
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
debug, logger, personality, scp
 
Constructor Summary
EJBAnnotationParser()
           
 
Method Summary
 java.lang.String getTitle()
           
 boolean init()
          The parser instance is reused at each process method call
 void process()
          Look for annotated EJB entity classes in the class paths and parse them.
 
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
getLogger, getSpeedoCompilerParameter, getSummary, 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

CBNAMES

public static final java.lang.String[] CBNAMES

CBIDS

public static final int[] CBIDS

CBCLASSES

public static final java.lang.Class[] CBCLASSES
Constructor Detail

EJBAnnotationParser

public EJBAnnotationParser()
Method Detail

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface GeneratorComponent
Overrides:
getTitle in class AbstractGeneratorComponent
Returns:
a short string (less than 30 characters) representing the title of the component. This string must indicate job of the component.

init

public boolean init()
             throws SpeedoException
The parser instance is reused at each process method call

Specified by:
init in interface GeneratorComponent
Specified by:
init in class AbstractGeneratorComponent
Returns:
boolean value indicating if the process method can be called.
Throws:
SpeedoException - if the component initialization fails

process

public void process()
             throws SpeedoException
Look for annotated EJB entity classes in the class paths and parse them.

Specified by:
process in interface GeneratorComponent
Specified by:
process in class AbstractGeneratorComponent
Throws:
SpeedoException - if the component initialization fails