Package org.webpieces.templatingdev.impl
Class DevTemplateCompileCallback
- java.lang.Object
-
- org.webpieces.templatingdev.impl.DevTemplateCompileCallback
-
- All Implemented Interfaces:
CompileCallback
public class DevTemplateCompileCallback extends java.lang.Object implements CompileCallback
-
-
Constructor Summary
Constructors Constructor Description DevTemplateCompileCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompiledGroovyClass(groovy.lang.GroovyClassLoader cl, org.codehaus.groovy.tools.GroovyClass groovyClass)voidrecordPath(java.lang.String relativeUrlPath, java.lang.String sourceLocation)voidrecordRouteId(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.
-
-
-
Method Detail
-
compiledGroovyClass
public void compiledGroovyClass(groovy.lang.GroovyClassLoader cl, org.codehaus.groovy.tools.GroovyClass groovyClass)- Specified by:
compiledGroovyClassin interfaceCompileCallback
-
recordRouteId
public void recordRouteId(java.lang.String routeId, java.util.List<java.lang.String> argNames, java.lang.String sourceLocation)Description copied from interface:CompileCallbackAllows 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:
recordRouteIdin interfaceCompileCallback
-
recordPath
public void recordPath(java.lang.String relativeUrlPath, java.lang.String sourceLocation)- Specified by:
recordPathin interfaceCompileCallback
-
-