Package org.apache.torque.generator.template.groovy

# Klasse GroovyScriptOutlet

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.GroovyScriptOutlet

Alle implementierten Schnittstellen:
  `Outlet`, `TemplateOutlet`

public class GroovyScriptOutlet extends GroovyOutlet
A Outlet which uses a groovy script 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

  Konstruktoren
  Konstruktor
  Beschreibung
  `GroovyScriptOutlet(QualifiedName name, ConfigurationProvider configurationProvider, String path, String encoding)`
  Constructs a new GroovyScriptOutlet.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `protected 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

  - ### GroovyScriptOutlet

    public GroovyScriptOutlet(QualifiedName name, ConfigurationProvider configurationProvider, String path, String encoding) throws ConfigurationException
    Constructs a new GroovyScriptOutlet.
    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 GeneratorException
    Beschreibung aus Klasse kopiert: `GroovyOutlet`
    Executes the Groovy script or template and retuns the reult.
    Angegeben von:
      `executeGroovy` in Klasse `GroovyOutlet`
    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.