Class SpringBootCompilerAutoConfiguration
- java.lang.Object
- org.springframework.boot.cli.compiler.CompilerAutoConfiguration
- org.springframework.boot.cli.compiler.autoconfigure.SpringBootCompilerAutoConfiguration
public class SpringBootCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfigurationfor Spring.
Constructor Summary
Constructors Constructor Description SpringBootCompilerAutoConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyDependencies(DependencyCustomizer dependencies)Apply any dependency customizations.voidapplyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)Apply any import customizations.voidapplyToMainClass(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 customizations to the main class.Methods inherited from class org.springframework.boot.cli.compiler.CompilerAutoConfiguration
apply, matches
Constructor Detail
SpringBootCompilerAutoConfiguration
public SpringBootCompilerAutoConfiguration()
Method Detail
applyDependencies
public void applyDependencies(DependencyCustomizer dependencies)
Description copied from class:CompilerAutoConfigurationApply any dependency customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)returnstrue.- Overrides:
applyDependenciesin classCompilerAutoConfiguration- Parameters:
dependencies- dependency customizer
applyImports
public void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)
Description copied from class:CompilerAutoConfigurationApply any import customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)returnstrue.- Overrides:
applyImportsin classCompilerAutoConfiguration- Parameters:
imports- import customizer
applyToMainClass
public void applyToMainClass(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:CompilerAutoConfigurationApply any customizations to the main class. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)returnstrue. This method is useful when a groovy file defines more than one class but customization only applies to the first class.- Overrides:
applyToMainClassin classCompilerAutoConfiguration- Parameters:
loader- the class loader being used during compilationconfiguration- the compiler configurationgeneratorContext- the current contextsource- the source unitclassNode- the main class- Throws:
org.codehaus.groovy.control.CompilationFailedException- if the customizations cannot be applied