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 |
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 |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |