Class ModelWriter


  • public class ModelWriter
    extends java.lang.Object
    Writes Java source files based on given mapper models, using a FreeMarker template.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static freemarker.template.Configuration CONFIGURATION
      FreeMarker configuration.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeModel​(javax.tools.FileObject sourceFile, Writable model)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONFIGURATION

        private static final freemarker.template.Configuration CONFIGURATION
        FreeMarker configuration. As per the documentation, thread-safe if not altered after original initialization
    • Constructor Detail

      • ModelWriter

        public ModelWriter()
    • Method Detail

      • writeModel

        public void writeModel​(javax.tools.FileObject sourceFile,
                               Writable model)