|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.generators.genbase.generator.AbsGenerator
public abstract class AbsGenerator
Generators provide a structure to be extended for specific generation mechanisms.
| Constructor Summary | |
|---|---|
AbsGenerator(Config config)
Creates a new Generator with the given Config. |
|
| Method Summary | |
|---|---|
abstract void |
addFiles(Archive archive)
Add generated files into an Archive |
abstract void |
compile()
Compile generated java files into classes directory. |
abstract void |
generate()
Generate files. |
File |
getClasses()
|
Config |
getConfig()
|
protected List<String> |
getJavaSources(File rootSrc,
File src)
Recursively walk a directory tree and return a List of all files found. |
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
File |
getSources()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbsGenerator(Config config)
throws GenBaseException
config - internal configuration object.
GenBaseException - When sources and target temporary directory
cannot be created| Method Detail |
|---|
public abstract void generate()
throws GenBaseException
GenBaseException - When generation fails.
public abstract void compile()
throws GenBaseException
GenBaseException - When compilation fails
protected List<String> getJavaSources(File rootSrc,
File src)
rootSrc - root directorysrc - base directory
public abstract void addFiles(Archive archive)
throws GenBaseException
archive - the archive destination of generated files.
GenBaseException - When files cannot be added in the given Archive.public Config getConfig()
public static org.objectweb.util.monolog.api.Logger getLogger()
public File getClasses()
public File getSources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||