Class AbstractGenerator


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      freemarker.template.Configuration createFreemarkerConfiguration()
      Creates the freemarker configuration.
      org.apache.maven.plugin.logging.Log getLogger()
      Gets the maven logger.
      java.io.File getTemplateDirectory()
      Gets the freemarker template directory.
      void setLogger​(org.apache.maven.plugin.logging.Log logger)
      Sets the maven logger.
      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 Detail

      • AbstractGenerator

        public AbstractGenerator()
    • Method Detail

      • getTemplateDirectory

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

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

        public org.apache.maven.plugin.logging.Log getLogger()
        Gets the maven logger.
        Returns:
        the logger
      • setLogger

        public void setLogger​(org.apache.maven.plugin.logging.Log logger)
        Sets the maven logger.
        Parameters:
        logger - the logger
      • 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