@groovy.transform.CompileStatic @AstTransformer class BootInitializerClassInjector extends GlobalClassInjectorAdapter
A transformation that automatically produces a Spring servlet initializer for a class that extends GrailsConfiguration. Given a class "Application" that extends GrailsAutoConfiguration, it produces:
class ApplicationLoader extends SpringBootServletInitializer {
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application)
}
}
Modifiers | Name | Description |
---|---|---|
static org.codehaus.groovy.ast.ClassNode |
GRAILS_CONFIGURATION_CLASS_NODE |
|
static org.codehaus.groovy.ast.ClassNode |
PLUGIN_SOURCE_ANNOTATION |
Fields inherited from class | Fields |
---|---|
class GlobalClassInjectorAdapter |
processesClassNames |
Constructor and description |
---|
BootInitializerClassInjector
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
performInjectionInternal(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode) |
Methods inherited from class | Name |
---|---|
class GlobalClassInjectorAdapter |
performInjection, performInjection, performInjectionInternal, performInjectionOnAnnotatedClass, shouldInject |