Class SpringTestCompilerAutoConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(groovy.lang.GroovyClassLoader loader, GroovyCompilerConfiguration configuration, org.codehaus.groovy.classgen.GeneratorContext generatorContext, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
      Apply any additional configuration.
      void applyDependencies​(DependencyCustomizer dependencies)
      Apply any dependency customizations.
      void applyImports​(org.codehaus.groovy.control.customizers.ImportCustomizer imports)
      Apply any import customizations.
      boolean matches​(org.codehaus.groovy.ast.ClassNode classNode)
      Strategy method used to determine when compiler auto-configuration should be applied.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringTestCompilerAutoConfiguration

        public SpringTestCompilerAutoConfiguration()
    • Method Detail

      • matches

        public boolean matches​(org.codehaus.groovy.ast.ClassNode classNode)
        Description copied from class: CompilerAutoConfiguration
        Strategy method used to determine when compiler auto-configuration should be applied. Defaults to always.
        Overrides:
        matches in class CompilerAutoConfiguration
        Parameters:
        classNode - the class node
        Returns:
        true if the compiler should be auto-configured using this class. If this method returns false no other strategy methods will be called.
      • apply

        public void apply​(groovy.lang.GroovyClassLoader loader,
                          GroovyCompilerConfiguration configuration,
                          org.codehaus.groovy.classgen.GeneratorContext generatorContext,
                          org.codehaus.groovy.control.SourceUnit source,
                          org.codehaus.groovy.ast.ClassNode classNode)
                   throws org.codehaus.groovy.control.CompilationFailedException
        Description copied from class: CompilerAutoConfiguration
        Apply any additional configuration.
        Overrides:
        apply in class CompilerAutoConfiguration
        Parameters:
        loader - the class loader being used during compilation
        configuration - the compiler configuration
        generatorContext - the current context
        source - the source unit
        classNode - the class
        Throws:
        org.codehaus.groovy.control.CompilationFailedException - if the configuration cannot be applied