Package org.webpieces.templatingdev.api
Interface CompileCallback
-
- All Known Implementing Classes:
DevTemplateCompileCallback
public interface CompileCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcompiledGroovyClass(groovy.lang.GroovyClassLoader groovyCl, org.codehaus.groovy.tools.GroovyClass clazz)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
void compiledGroovyClass(groovy.lang.GroovyClassLoader groovyCl, org.codehaus.groovy.tools.GroovyClass clazz)
-
recordRouteId
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. build time as your tests should be run then)- Parameters:
routeId-argNames-sourceLocation-
-
recordPath
void recordPath(java.lang.String relativeUrlPath, java.lang.String sourceLocation)
-
-