Search in sources :

Example 1 with GroovyPageInjectionOperation

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;
}
Also used : CompilationUnit(org.codehaus.groovy.control.CompilationUnit) GroovyPageInjectionOperation(org.grails.gsp.compiler.transform.GroovyPageInjectionOperation)

Aggregations

CompilationUnit (org.codehaus.groovy.control.CompilationUnit)1 GroovyPageInjectionOperation (org.grails.gsp.compiler.transform.GroovyPageInjectionOperation)1