@Role public interface GroovyCompilationCustomizer
CompilationCustomizer
s to perform Groovy customization such as: automatically add
imports, stop script execution after a certain timeout, prevents using some imports/statements/operators/etc, and
more.
Note that we would have liked to not have this interface and instead have our component implementations directly
implement CompilationCustomizer
but unfortunately the Groovy guys made the choice(wrong, IMO) to not use an
interface for CompilationCustomizer; it's an Abstract class! (yuck, even the name is wrong since a good practice is
to have Abstract in the name of Abstract classes...).
Modifier and Type | Method and Description |
---|---|
org.codehaus.groovy.control.customizers.CompilationCustomizer |
createCustomizer() |
Copyright © 2004–2021 XWiki. All rights reserved.