Klasse GroovyTemplateOutlet
java.lang.Object
org.apache.torque.generator.outlet.OutletImpl
org.apache.torque.generator.template.TemplateOutletImpl
org.apache.torque.generator.template.groovy.GroovyOutlet
org.apache.torque.generator.template.groovy.GroovyTemplateOutlet
- Alle implementierten Schnittstellen:
Outlet
,TemplateOutlet
A Outlet which uses a groovy template for generation.
-
Feldübersicht
Von Klasse geerbte Felder org.apache.torque.generator.template.groovy.GroovyOutlet
NULL_KEY_BINDING_NAME, TORQUE_GEN_BINDING_NAME
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGroovyTemplateOutlet
(QualifiedName name, ConfigurationProvider configurationProvider, String path, String encoding) Constructs a new GroovyTemplateOutlet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String
executeGroovy
(Map<String, Object> binding, ControllerState controllerState) Executes the Groovy script or template and retuns the reult.Von Klasse geerbte Methoden org.apache.torque.generator.template.groovy.GroovyOutlet
createBinding, execute, isOptionsInBinding, isSourceAttributesInBinding, isVariablesInBinding, setOptionsInBinding, setSourceAttributesInBinding, setVariablesInContext
Von Klasse geerbte Methoden org.apache.torque.generator.template.TemplateOutletImpl
getContent, getDetokenizedPath, getPath, load, toString
Von Klasse geerbte Methoden org.apache.torque.generator.outlet.OutletImpl
addMergepointMapping, afterExecute, beforeExecute, getInputClass, getInputElementName, getMergepointMapping, getMergepointMappings, getName, getVariable, mergepoint, setInputClass, setInputElementName, setMergepointMapping, setVariable, setVariable
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.apache.torque.generator.outlet.Outlet
addMergepointMapping, afterExecute, beforeExecute, getInputClass, getInputElementName, getMergepointMapping, getMergepointMappings, getName, setInputClass, setInputElementName, setMergepointMapping
-
Konstruktordetails
-
GroovyTemplateOutlet
public GroovyTemplateOutlet(QualifiedName name, ConfigurationProvider configurationProvider, String path, String encoding) throws ConfigurationException Constructs a new GroovyTemplateOutlet.- Parameter:
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.encoding
- the encoding of the file, or null if the system's default encoding should be used.- Löst aus:
NullPointerException
- if name, path or directories are null.ConfigurationException
- if an error occurs while reading the template.
-
-
Methodendetails
-
executeGroovy
protected String executeGroovy(Map<String, Object> binding, ControllerState controllerState) throws GeneratorExceptionBeschreibung aus Klasse kopiert:GroovyOutlet
Executes the Groovy script or template and retuns the reult.- Angegeben von:
executeGroovy
in KlasseGroovyOutlet
- Parameter:
binding
- the binding, not null.controllerState
- the controller state, not null.- Gibt zurück:
- the generation result.
- Löst aus:
GeneratorException
- if generation fails.
-