Class AbstractGenerator

java.lang.Object
org.tentackle.buildsupport.codegen.AbstractGenerator

public abstract class AbstractGenerator extends Object
Base class for generators.
  • Constructor Details

    • AbstractGenerator

      public AbstractGenerator()
  • Method Details

    • getTemplateDirectory

      public File getTemplateDirectory()
      Gets the freemarker template directory.
      Returns:
      the template directory
    • setTemplateDirectory

      public void setTemplateDirectory(File templateDirectory)
      Sets the freemarker template directory.
      Parameters:
      templateDirectory - the template directory
    • createFreemarkerConfiguration

      public freemarker.template.Configuration createFreemarkerConfiguration() throws IOException
      Creates the freemarker configuration.
      Returns:
      the config
      Throws:
      IOException - if there's some trouble with the template directory