Class AbstractGenerator

java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.template.AbstractGenerator
Direct Known Subclasses:
AbstractTemplateToolMojo.TemplateGenerator, JPacktoolMavenFileFilter.TemplateGenerator

public class AbstractGenerator
extends java.lang.Object
Base class for generators.
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractGenerator()  
  • Method Summary

    Modifier and Type Method Description
    freemarker.template.Configuration createFreemarkerConfiguration()
    Creates the freemarker configuration.
    void setTemplateDirectory​(java.io.File templateDirectory)
    Sets the freemarker template directory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setTemplateDirectory

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

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