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
import org.springframework.core.io.ResourceLoader
/**
* 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(ResourceLoader resourceLoader, Class < ? > ... sources) {
return new GrailsApp(resourceLoader, sources)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy