Interface GroovyCompilationCustomizer


  • @Role
    public interface GroovyCompilationCustomizer
    Allow providing Groovy's CompilationCustomizers 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 Detail

      • createCustomizer

        org.codehaus.groovy.control.customizers.CompilationCustomizer createCustomizer()
        Returns:
        the Groovy Customizer implementation class to use. If null is returned then no customizer will be added