Package org.xwiki.groovy
Interface GroovyCompilationCustomizer
-
@Role public interface GroovyCompilationCustomizer
Allow providing Groovy'sCompilationCustomizer
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...).- Since:
- 4.1M1
- Version:
- $Id: 5cb525d446c6fd29cadcce837a309c07afc832ea $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.codehaus.groovy.control.customizers.CompilationCustomizer
createCustomizer()
-