org.apache.beehive.controls.runtime.generator
Class VelocityGenerator

Object
  extended by CodeGenerator
      extended by VelocityGenerator

public class VelocityGenerator
extends CodeGenerator

The VelocityGenerator class is an implementation of CodeGenerator that uses standard Apache Velocity classes from the system classpath.


Constructor Summary
VelocityGenerator()
           
 
Method Summary
 void generate(GeneratorOutput genOut)
          Implementation of the CodeGenerator.generate() method, using standard Velocity package naming conventions and the system class loader
 Template getTemplate(String templateName)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityGenerator

public VelocityGenerator()
                  throws Exception
Throws:
Exception
Method Detail

generate

public void generate(GeneratorOutput genOut)
              throws CodeGenerationException
Implementation of the CodeGenerator.generate() method, using standard Velocity package naming conventions and the system class loader

Specified by:
generate in class CodeGenerator
Throws:
CodeGenerationException

getTemplate

public Template getTemplate(String templateName)
                     throws Exception
Throws:
Exception