|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a component of a generator which generates a file with the Velocity tool. The use of this interface permits to reuse the VelocityEngine in order have better generation performance. Indeed the VelocityEngine initialization is very cheap.
Method Summary | |
---|---|
void |
generate(SpeedoClass sClass,
java.lang.String fileName)
It generates the file name corresponding to the Speedo meta object given in parameter. |
java.util.Collection |
getExternalsTemplate()
|
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
|
void |
setVelocityEngine(org.apache.velocity.app.VelocityEngine ve)
It assignes the VelocityEngine instance which must be used during the veleocity generatioin. |
Methods inherited from interface org.objectweb.speedo.generation.api.GeneratorComponent |
---|
getSpeedoCompilerParameter, init, process, setSpeedoCompilerParameter |
Method Detail |
public void setVelocityEngine(org.apache.velocity.app.VelocityEngine ve)
ve
- is the VelocityEngine instance to use.public org.apache.velocity.app.VelocityEngine getVelocityEngine()
public java.util.Collection getExternalsTemplate()
public void generate(SpeedoClass sClass, java.lang.String fileName) throws SpeedoException
sClass
- is the speedo meta object which represents a persistent classfileName
- is the generated file name
SpeedoException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |