org.webpieces.templatingdev.impl.DevTemplateCompileCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-templating-dev-lib Show documentation
Show all versions of http-templating-dev-lib Show documentation
Templating library using groovy as the scripting language
package org.webpieces.templatingdev.impl;
import java.util.List;
import org.codehaus.groovy.tools.GroovyClass;
import org.webpieces.templatingdev.api.CompileCallback;
import groovy.lang.GroovyClassLoader;
public class DevTemplateCompileCallback implements CompileCallback {
@Override
public void compiledGroovyClass(GroovyClassLoader cl, GroovyClass groovyClass) {
cl.defineClass(groovyClass.getName(), groovyClass.getBytes());
}
@Override
public void recordRouteId(String routeId, List argNames, String sourceLocation) {
}
@Override
public void recordPath(String relativeUrlPath, String sourceLocation) {
}
}