use of org.grails.gsp.compiler.transform.GroovyPageInjectionOperation in project grails-core by grails.
the class GroovyPageClassLoader method createCompilationUnit.
/**
* @see groovy.lang.GroovyClassLoader#createCompilationUnit(org.codehaus.groovy.control.CompilerConfiguration, java.security.CodeSource)
*/
@Override
protected CompilationUnit createCompilationUnit(CompilerConfiguration config, CodeSource source) {
CompilationUnit cu = super.createCompilationUnit(config, source);
GroovyPageInjectionOperation operation;
operation = new GroovyPageInjectionOperation();
cu.addPhaseOperation(operation, Phases.CANONICALIZATION);
return cu;
}
Aggregations