类 SpringTestCompilerAutoConfiguration
- java.lang.Object
- org.springframework.boot.cli.compiler.CompilerAutoConfiguration
- org.springframework.boot.cli.compiler.autoconfigure.SpringTestCompilerAutoConfiguration
public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfigurationfor Spring Test.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 构造器 说明 SpringTestCompilerAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidapply(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.voidapplyDependencies(DependencyCustomizer dependencies)Apply any dependency customizations.voidapplyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports)Apply any import customizations.booleanmatches(org.codehaus.groovy.ast.ClassNode classNode)Strategy method used to determine when compiler auto-configuration should be applied.从类继承的方法 org.springframework.boot.cli.compiler.CompilerAutoConfiguration
applyToMainClass
构造器详细资料
SpringTestCompilerAutoConfiguration
public SpringTestCompilerAutoConfiguration()
方法详细资料
matches
public boolean matches(org.codehaus.groovy.ast.ClassNode classNode)
从类复制的说明:CompilerAutoConfigurationStrategy method used to determine when compiler auto-configuration should be applied. Defaults to always.- 覆盖:
matches在类中CompilerAutoConfiguration- 参数:
classNode- the class node- 返回:
trueif the compiler should be auto configured using this class. If this method returnsfalseno other strategy methods will be called.
applyDependencies
public void applyDependencies(DependencyCustomizer dependencies)
从类复制的说明:CompilerAutoConfigurationApply any dependency customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)returnstrue.- 覆盖:
applyDependencies在类中CompilerAutoConfiguration- 参数:
dependencies- dependency customizer
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
从类复制的说明:CompilerAutoConfigurationApply any additional configuration.- 覆盖:
apply在类中CompilerAutoConfiguration- 参数:
loader- the class loader being used during compilationconfiguration- the compiler configurationgeneratorContext- the current contextsource- the source unitclassNode- the class- 抛出:
org.codehaus.groovy.control.CompilationFailedException- if the configuration cannot be applied
applyImports
public void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports) throws org.codehaus.groovy.control.CompilationFailedException
从类复制的说明:CompilerAutoConfigurationApply any import customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)returnstrue.- 覆盖:
applyImports在类中CompilerAutoConfiguration- 参数:
imports- import customizer- 抛出:
org.codehaus.groovy.control.CompilationFailedException- if the imports cannot be applied