|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jorm.generator.lib.CommonGenerator
This class contains the common elements for generating jorm objects (mapping, binding, accessors).
Field Summary | |
static java.lang.String |
GEN_TEMPLATE_DIR
|
protected Logger |
logger
The logger instance which logs the traces of the generator. |
protected LoggerFactory |
loggerFactory
The logger factory instance which permits to fetch Logger instance. |
static java.lang.String |
MAPPER_TEMPLATE_DIR
The base directory where to find velocity template. |
protected VelocityEngine |
velocityEngine
|
Constructor Summary | |
CommonGenerator()
|
Method Summary | |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String[][] |
getTemplateLibraries()
|
void |
setLogger(Logger l)
Assigns a logger to an component that wants to log things. |
void |
setLoggerFactory(LoggerFactory lf)
Assigns a logger factory that allows the creation of new loggers. |
void |
setVelocityEngine(VelocityEngine ve)
|
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 MAPPER_TEMPLATE_DIR
public static final java.lang.String GEN_TEMPLATE_DIR
protected Logger logger
protected LoggerFactory loggerFactory
protected VelocityEngine velocityEngine
Constructor Detail |
public CommonGenerator()
Method Detail |
public void setLoggerFactory(LoggerFactory lf)
Loggable
setLoggerFactory
in interface Loggable
lf
- the LoggerFactory object to obtain new loggerspublic void setLogger(Logger l)
Loggable
setLogger
in interface Loggable
l
- the logger objectpublic Logger getLogger()
Loggable
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
public void setVelocityEngine(VelocityEngine ve)
public java.lang.String[][] getTemplateLibraries()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |