Search in sources :

Example 1 with GroovyPageInjector

use of grails.compiler.ast.GroovyPageInjector in project grails-core by grails.

the class GroovyPageInjectionOperation method getGroovyPageInjectors.

private GroovyPageInjector[] getGroovyPageInjectors() {
    if (groovyPageInjectors == null) {
        List<GroovyPageInjector> injectors = new ArrayList<GroovyPageInjector>();
        for (ClassInjector ci : getClassInjectors()) {
            if (ci instanceof GroovyPageInjector) {
                injectors.add((GroovyPageInjector) ci);
            }
        }
        groovyPageInjectors = injectors.toArray(new GroovyPageInjector[injectors.size()]);
    }
    return groovyPageInjectors;
}
Also used : GroovyPageInjector(grails.compiler.ast.GroovyPageInjector) ArrayList(java.util.ArrayList) ClassInjector(grails.compiler.ast.ClassInjector)

Aggregations

ClassInjector (grails.compiler.ast.ClassInjector)1 GroovyPageInjector (grails.compiler.ast.GroovyPageInjector)1 ArrayList (java.util.ArrayList)1