|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.outlet.OutletImpl org.apache.torque.generator.template.TemplateOutletImpl org.apache.torque.generator.template.groovy.GroovyOutlet
public class GroovyOutlet
A Outlet which uses a groovy script for generation.
Field Summary | |
---|---|
static String |
TORQUE_GEN_CONTEXT_NAME
The name under which the Torque generator interface will be put into the context. |
Constructor Summary | |
---|---|
GroovyOutlet(org.apache.torque.generator.qname.QualifiedName name,
org.apache.torque.generator.configuration.ConfigurationProvider configurationProvider,
String path)
Constructs a new GroovyOutlet. |
Method Summary | |
---|---|
org.apache.torque.generator.outlet.OutletResult |
execute(org.apache.torque.generator.control.ControllerState controllerState)
Executes the generation process; the result is returned. |
Methods inherited from class org.apache.torque.generator.template.TemplateOutletImpl |
---|
getContent, load, toString |
Methods inherited from class org.apache.torque.generator.outlet.OutletImpl |
---|
addMergepointMapping, afterExecute, beforeExecute, getInputElementName, getMergepointMapping, getMergepointMappings, getName, getVariable, mergepoint, setInputElementName, setMergepointMapping, setVariable, setVariable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.torque.generator.outlet.Outlet |
---|
addMergepointMapping, afterExecute, beforeExecute, getInputElementName, getMergepointMapping, getMergepointMappings, getName, setInputElementName, setMergepointMapping |
Field Detail |
---|
public static final String TORQUE_GEN_CONTEXT_NAME
Constructor Detail |
---|
public GroovyOutlet(org.apache.torque.generator.qname.QualifiedName name, org.apache.torque.generator.configuration.ConfigurationProvider configurationProvider, String path) throws org.apache.torque.generator.configuration.ConfigurationException
name
- the name of this outlet, not null.configurationProvider
- the provider for reading the templates,
not null.path
- the path to the templates, not null.
NullPointerException
- if name, path or directories are null.
org.apache.torque.generator.configuration.ConfigurationException
- if an error occurs while reading the
template.Method Detail |
---|
public org.apache.torque.generator.outlet.OutletResult execute(org.apache.torque.generator.control.ControllerState controllerState) throws org.apache.torque.generator.GeneratorException
execute
in interface org.apache.torque.generator.outlet.Outlet
execute
in class org.apache.torque.generator.outlet.OutletImpl
controllerState
- the current controller state.
org.apache.torque.generator.GeneratorException
Outlet.execute(ControllerState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |