grails.boot.GrailsAppBuilder.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grails-core Show documentation
Show all versions of grails-core Show documentation
Grails Web Application Framework
package grails.boot
import groovy.transform.CompileStatic
import groovy.transform.InheritConstructors
import org.springframework.boot.SpringApplication
import org.springframework.boot.builder.SpringApplicationBuilder
/**
* Fluent API for constructing GrailsApp instances. Simple extension of {@link SpringApplicationBuilder}.
*
* @author Graeme Rocher
* @since 3.0.6
*/
@CompileStatic
@InheritConstructors
class GrailsAppBuilder extends SpringApplicationBuilder {
@Override
protected SpringApplication createSpringApplication(Object... sources) {
return new GrailsApp(sources)
}
}