|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.comp.generator.lib.ObjectGenerator
This class contains the common elements for generating jorm objects (mapping, binding, accessors)
| Field Summary | |
protected org.objectweb.util.monolog.api.Logger |
logger
The logger instance which logs the traces of the generator. |
protected org.objectweb.util.monolog.api.LoggerFactory |
loggerFactory
The logger factory instance which permits to fetch Logger instance. |
static java.lang.String |
TEMPLATE_DIR
The base directory where to find velocity template. |
| Constructor Summary | |
ObjectGenerator()
|
|
| Method Summary | |
abstract void |
generate(MetaObject pod,
org.objectweb.util.io.api.TargetHolder holder,
CompilerParameter cp)
A part of the generate |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
org.apache.velocity.app.VelocityEngine |
initVelocity()
It initializes a new VelocityEngine. |
void |
setLogger(org.objectweb.util.monolog.api.Logger l)
Assigns a logger to an component that wants to log things. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory lf)
Assigns a logger factory that allows the creation of new loggers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String TEMPLATE_DIR
protected org.objectweb.util.monolog.api.Logger logger
protected org.objectweb.util.monolog.api.LoggerFactory loggerFactory
| Constructor Detail |
public ObjectGenerator()
| Method Detail |
public org.apache.velocity.app.VelocityEngine initVelocity()
public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory lf)
LoggablesetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggerspublic void setLogger(org.objectweb.util.monolog.api.Logger l)
LoggablesetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
public abstract void generate(MetaObject pod,
org.objectweb.util.io.api.TargetHolder holder,
CompilerParameter cp)
throws java.lang.Exception
generate in interface Generatorpod - the meta object interfaceth - The target holder which allows to create files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||