类 CachingCompilerAutoConfiguration
- java.lang.Object
- org.springframework.boot.cli.compiler.CompilerAutoConfiguration
- org.springframework.boot.cli.compiler.autoconfigure.CachingCompilerAutoConfiguration
public class CachingCompilerAutoConfiguration extends CompilerAutoConfiguration
CompilerAutoConfiguration
for the caching infrastructure.- 从以下版本开始:
- 1.2.0
构造器概要
构造器 构造器 说明 CachingCompilerAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.从类继承的方法 org.springframework.boot.cli.compiler.CompilerAutoConfiguration
apply, applyToMainClass
构造器详细资料
CachingCompilerAutoConfiguration
public CachingCompilerAutoConfiguration()
方法详细资料
matches
public boolean matches(org.codehaus.groovy.ast.ClassNode classNode)
从类复制的说明:CompilerAutoConfiguration
Strategy method used to determine when compiler auto-configuration should be applied. Defaults to always.- 覆盖:
matches
在类中CompilerAutoConfiguration
- 参数:
classNode
- the class node- 返回:
true
if the compiler should be auto configured using this class. If this method returnsfalse
no other strategy methods will be called.
applyDependencies
public void applyDependencies(DependencyCustomizer dependencies) throws org.codehaus.groovy.control.CompilationFailedException
从类复制的说明:CompilerAutoConfiguration
Apply any dependency customizations. This method will only be called ifCompilerAutoConfiguration.matches(org.codehaus.groovy.ast.ClassNode)
returnstrue
.- 覆盖:
applyDependencies
在类中CompilerAutoConfiguration
- 参数:
dependencies
- dependency customizer- 抛出:
org.codehaus.groovy.control.CompilationFailedException
- if the dependencies cannot be applied
applyImports
public void applyImports(org.codehaus.groovy.control.customizers.ImportCustomizer imports) throws org.codehaus.groovy.control.CompilationFailedException
从类复制的说明:CompilerAutoConfiguration
Apply 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