Class DevTemplateCompileCallback

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void compiledGroovyClass​(groovy.lang.GroovyClassLoader cl, org.codehaus.groovy.tools.GroovyClass groovyClass)  
      void recordPath​(java.lang.String relativeUrlPath, java.lang.String sourceLocation)  
      void recordRouteId​(java.lang.String routeId, java.util.List<java.lang.String> argNames, java.lang.String sourceLocation)
      Allows the compiler to write a file out with all routeids from html files that can be used at startup time to validate all routes so we catch any errors on mistyped route ids before going to production (ie.
      • Methods inherited from class java.lang.Object

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

      • DevTemplateCompileCallback

        public DevTemplateCompileCallback()
    • Method Detail

      • compiledGroovyClass

        public void compiledGroovyClass​(groovy.lang.GroovyClassLoader cl,
                                        org.codehaus.groovy.tools.GroovyClass groovyClass)
        Specified by:
        compiledGroovyClass in interface CompileCallback
      • recordRouteId

        public void recordRouteId​(java.lang.String routeId,
                                  java.util.List<java.lang.String> argNames,
                                  java.lang.String sourceLocation)
        Description copied from interface: CompileCallback
        Allows the compiler to write a file out with all routeids from html files that can be used at startup time to validate all routes so we catch any errors on mistyped route ids before going to production (ie. build time as your tests should be run then)
        Specified by:
        recordRouteId in interface CompileCallback
      • recordPath

        public void recordPath​(java.lang.String relativeUrlPath,
                               java.lang.String sourceLocation)
        Specified by:
        recordPath in interface CompileCallback